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

Traversed-source payload for reusable dynamic caches with source traversal. More...

#include <query_info.h>

Public Member Functions

void clear ()
 Clears traversed-source snapshot state.
 
GAIA_NODISCARD bool is_overflowed () const
 Returns true when the traversed-source snapshot is unusable for reuse.
 
GAIA_NODISCARD bool versions_changed (const World &world) const
 Returns true when any tracked traversed source entity changed archetype.
 
GAIA_NODISCARD bool changed (const cnt::darray< SrcTravSnapshotItem > &items) const
 Returns true when a rebuilt traversed-source closure differs from the captured snapshot.
 
void capture (const cnt::darray< SrcTravSnapshotItem > &items)
 Captures a newly built traversed-source closure snapshot.
 
void mark_overflowed ()
 Marks the traversed-source snapshot as overflowed and unusable for reuse.
 

Public Attributes

cnt::darray< SrcTravSnapshotItem > snapshot
 Last seen traversed-source closure for reusable source queries.
 
bool overflowed = false
 True when the traversed source closure exceeded the configured snapshot cap.
 

Detailed Description

Traversed-source payload for reusable dynamic caches with source traversal.


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