|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Static world container coordinating fields, operators, and universe specification. More...


Go to the source code of this file.
Classes | |
| struct | SimPole |
| Pole singularity specification for universe geometry. More... | |
| struct | SimPoleFieldOptions |
| Options controlling synthesized pole fields. More... | |
| struct | SimUniverseSpec |
| Universe/experiment specification defining mathematical structure. More... | |
| struct | SimFieldContinuityOverride |
| Static world container holding fields, registry, and universe spec. More... | |
| struct | SimWorld |
| Mutable world container that owns fields, operators, and universe data. More... | |
Macros | |
| #define | SIM_WORLD_DEFAULT_Q 1.0f |
| #define | SIM_WORLD_DEFAULT_K 20U |
| #define | SIM_WORLD_DEFAULT_EPSILON 0.5f |
| #define | SIM_WORLD_DEFAULT_SIEVE_SIGMA 0.1f |
Typedefs | |
| typedef struct SimPole | SimPole |
| Pole singularity specification for universe geometry. | |
| typedef struct SimPoleFieldOptions | SimPoleFieldOptions |
| Options controlling synthesized pole fields. | |
| typedef struct SimUniverseSpec | SimUniverseSpec |
| Universe/experiment specification defining mathematical structure. | |
| typedef struct SimFieldContinuityOverride | SimFieldContinuityOverride |
| Static world container holding fields, registry, and universe spec. | |
| typedef struct SimWorld | SimWorld |
| Mutable world container that owns fields, operators, and universe data. | |
Functions | |
| SimResult | sim_world_init (SimWorld *world, const SimUniverseSpec *universe_spec) |
| Initialize world container and copy universe specification. | |
| SimResult | sim_world_reserve_fields (SimWorld *world, size_t additional) |
Ensure field storage can accommodate additional entries. | |
| void | sim_world_reset_fields (SimWorld *world) |
| Reset owned field storage and release buffers. | |
| void | sim_world_destroy (SimWorld *world) |
| Destroy world container resources. | |
| SimResult | sim_world_set_field_continuity_override (SimWorld *world, size_t field_index, bool enabled, const SimOperatorConfig *config) |
| Assign or clear a per-field continuity override. | |
| bool | sim_world_field_continuity_override (const SimWorld *world, size_t field_index, SimOperatorConfig *out_config) |
| Query the active continuity override for a field, if present. | |
Static world container coordinating fields, operators, and universe specification.
| typedef struct SimUniverseSpec SimUniverseSpec |
Universe/experiment specification defining mathematical structure.
This describes the "physics" of the toy universe - immutable after init.
| void sim_world_destroy | ( | SimWorld * | world | ) |
Destroy world container resources.
| world | World container to destroy; NULL is ignored. |
| bool sim_world_field_continuity_override | ( | const SimWorld * | world, |
| size_t | field_index, | ||
| SimOperatorConfig * | out_config | ||
| ) |
Query the active continuity override for a field, if present.
| world | World container to inspect. | |
| field_index | Field index to query. | |
| [out] | out_config | Optional receiver for the override config. |
| SimResult sim_world_init | ( | SimWorld * | world, |
| const SimUniverseSpec * | universe_spec | ||
| ) |
Initialize world container and copy universe specification.
| world | World container to initialize. |
| universe_spec | Optional universe specification; NULL selects defaults. |
Ensure field storage can accommodate additional entries.
| world | World container to grow. |
| additional | Number of additional fields required. |
| void sim_world_reset_fields | ( | SimWorld * | world | ) |
Reset owned field storage and release buffers.
| world | World container to reset; NULL is ignored. |
| SimResult sim_world_set_field_continuity_override | ( | SimWorld * | world, |
| size_t | field_index, | ||
| bool | enabled, | ||
| const SimOperatorConfig * | config | ||
| ) |
Assign or clear a per-field continuity override.
| world | World container to update. |
| field_index | Field index to configure. |
| enabled | Whether the override should be active. |
| config | Continuity config to copy when enabled; required if enabled. |