Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
SimFieldTopologyRuntimeState Struct Reference

Reusable runtime state for one field's topology cache. More...

#include <sim_field_topology_runtime.h>

Collaboration diagram for SimFieldTopologyRuntimeState:

Public Attributes

bool enabled
 
bool valid
 
bool dirty
 
size_t width
 
size_t height
 
size_t cell_capacity
 
size_t cadence_steps
 
size_t last_computed_step
 
uint64_t generation
 
uint64_t request_count
 
uint64_t recompute_count
 
uint64_t skip_count
 
uint64_t pack_count
 
SimFieldTopologySummary summary
 
SimFieldTopologyConfig config
 
SimFieldTopologyCellcells
 
SimFieldTopologyWorkspace workspace
 

Detailed Description

Reusable runtime state for one field's topology cache.

Member Data Documentation

◆ cadence_steps

size_t SimFieldTopologyRuntimeState::cadence_steps

Minimum step interval between clean recomputations.

◆ cell_capacity

size_t SimFieldTopologyRuntimeState::cell_capacity

Number of SimFieldTopologyCell entries allocated.

◆ cells

SimFieldTopologyCell* SimFieldTopologyRuntimeState::cells

Cached topology cells, width * height entries.

◆ config

SimFieldTopologyConfig SimFieldTopologyRuntimeState::config

Extraction thresholds used for recompute.

◆ dirty

bool SimFieldTopologyRuntimeState::dirty

Forces recomputation on the next request.

◆ enabled

bool SimFieldTopologyRuntimeState::enabled

Enables recomputation; disabled states report invalid topology.

◆ generation

uint64_t SimFieldTopologyRuntimeState::generation

Monotonic counter bumped on resize and recompute.

◆ height

size_t SimFieldTopologyRuntimeState::height

Cached topology height.

◆ last_computed_step

size_t SimFieldTopologyRuntimeState::last_computed_step

Step index used for the most recent recompute.

◆ pack_count

uint64_t SimFieldTopologyRuntimeState::pack_count

Successful RGBA8 pack operations.

◆ recompute_count

uint64_t SimFieldTopologyRuntimeState::recompute_count

Requests that performed extraction work.

◆ request_count

uint64_t SimFieldTopologyRuntimeState::request_count

Total recompute requests observed while enabled.

◆ skip_count

uint64_t SimFieldTopologyRuntimeState::skip_count

Requests skipped because cadence allowed cache reuse.

◆ summary

SimFieldTopologySummary SimFieldTopologyRuntimeState::summary

Cached aggregate topology summary.

◆ valid

bool SimFieldTopologyRuntimeState::valid

True when cached cells and summary describe current topology.

◆ width

size_t SimFieldTopologyRuntimeState::width

Cached topology width.

◆ workspace

SimFieldTopologyWorkspace SimFieldTopologyRuntimeState::workspace

Reusable auxiliary storage.


The documentation for this struct was generated from the following file: