Gaia-ECS v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::QueryMatchScratch Struct Reference

Public Member Functions

void clear_temporary_matches ()
 
void clear_temporary_matches_keep_stamps ()
 
void reset_stamps ()
 
GAIA_NODISCARD uint32_t next_match_version ()
 

Public Attributes

cnt::darr< const Archetype * > matchesArr
 Ordered list of matched archetypes emitted by the VM for the current run.
 
ArchetypeMatchStamps matchStamps
 Paged O(1) dedup table keyed by world-local archetype ids. Pages stay allocated on the scratch frame so repeated matches do not keep reallocating heap memory when archetype ids revisit the same ranges.
 
uint32_t matchVersion = 0
 Monotonic dedup stamp used when the same scratch frame is reused by later full match() calls without clearing stamp pages.
 

Member Function Documentation

◆ clear_temporary_matches_keep_stamps()

void gaia::ecs::QueryMatchScratch::clear_temporary_matches_keep_stamps ( )
inline

Full match() can reuse prior stamp pages and advance matchVersion instead of zeroing the whole table again.


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