Module table
Expand description
Fixed-Capacity SOA Archetype Table (table.rs).
Provides a zero-heap Structure-of-Arrays (SOA) component table SimTable<T, CAP> with:
- $O(1)$ sparse-to-dense entity index mapping (
sparse: [u32; CAP],entities: [u32; CAP]), - Contiguous dense component array (
components: [T; CAP]), - Per-row
added_ticksandchanged_ticks(Tick) for zero-heap reactive queries, - $O(1)$
insert,remove(swap-remove),get, andget_mut(which stampschanged_tick).
Structs§
- SimTable
- Fixed-capacity SOA component table with dense storage and per-row change-detection ticks.
Enums§
- SimTable
Error - Errors returned by
SimTableoperations.
Constants§
- INVALID_
ROW - Sentinel value indicating that an entity ID is not present in a
SimTable.