Skip to main content

Module table

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_ticks and changed_ticks (Tick) for zero-heap reactive queries,
  • $O(1)$ insert, remove (swap-remove), get, and get_mut (which stamps changed_tick).

Structs§

SimTable
Fixed-capacity SOA component table with dense storage and per-row change-detection ticks.

Enums§

SimTableError
Errors returned by SimTable operations.

Constants§

INVALID_ROW
Sentinel value indicating that an entity ID is not present in a SimTable.