Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::QueryInfo::QueryState::ExecPayload Struct Reference

Component mappings and flattened chunks prepared for query iteration. More...

#include <query_info.h>

Public Member Functions

void clear ()
 Releases execution payload storage and clears pending rebuild flags.
 
void clear_transient ()
 Clears execution payload contents while preserving allocated storage.
 

Public Attributes

cnt::darray< ArchetypeCompIndicesarchetypeCompIndices
 Cached component-index mapping for each matched archetype.
 
cnt::darray< ArchetypeInheritedDataarchetypeInheritedData
 Cached inherited component data pointer per query field for exact self-source semantic terms.
 
cnt::darray< DirectChunkEntrydirectChunks
 Flattened chunk cache for read-only direct dense iteration over highly fragmented result caches.
 
cnt::darray< const void * > directChunkData
 Contiguous cached component data pointers for DirectChunkEntry pointer blocks.
 
uint32_t directChunksWorldVersion = UINT32_MAX
 World version captured when directChunks was built.
 
uint32_t directChunksEnabledVersion = UINT32_MAX
 Enabled hierarchy version captured when directChunks was built.
 
uint32_t directChunksDeleteVersion = UINT32_MAX
 Archetype deletion-request version captured when directChunks was built.
 
uint32_t directChunksResultRevision = 0
 Result membership revision captured when directChunks was built.
 
uint32_t directChunksIdxFrom = UINT32_MAX
 First result-cache archetype index captured when directChunks was built.
 
uint32_t directChunksIdxTo = UINT32_MAX
 One-past-the-end result-cache archetype index captured when directChunks was built.
 
uint32_t directChunksDataFields [MAX_ITEMS_IN_QUERY] {}
 Query fields whose component data pointers were captured in DirectChunkEntry pointer blocks.
 
uint32_t directChunksDataFieldCount = 0
 Number of valid entries in directChunksDataFields.
 
const void * directChunksCompIndicesData = nullptr
 Component-index mapping storage captured by DirectChunkEntry::pCompIndices pointers.
 
bool compIndicesPending = false
 True when archetype membership is populated but component-index metadata still needs to be built on demand.
 
bool inheritedDataPending = false
 True when archetype membership is populated but inherited-term data still needs to be built on demand.
 

Detailed Description

Component mappings and flattened chunks prepared for query iteration.


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