Gaia-ECS v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::detail::EntityTermViewGet< U > Struct Template Reference

Read-only AoS term view fallback for APIs where storage mode is known only at runtime. Direct iteration paths should use EntityTermViewGetPointer/Entity instead. More...

#include <chunk_iterator.h>

Public Member Functions

GAIA_NODISCARD decltype(auto) operator[] (size_t idx) const
 
GAIA_NODISCARD constexpr size_t size () const noexcept
 
GAIA_NODISCARD const U * data () const noexcept
 

Static Public Member Functions

static EntityTermViewGet pointer (const U *pData, uint32_t cnt)
 
static EntityTermViewGet entity (const Entity *pEntities, World *pWorld, Entity id, uint32_t cnt)
 
static EntityTermViewGet inherited (const U *pDataInherited, uint32_t cnt)
 
static EntityTermViewGet entity_chunk_stable (const Entity *pEntities, const Chunk *pChunk, World *pWorld, Entity id, uint16_t rowBase, uint32_t cnt)
 

Public Attributes

const U * pData = nullptr
 
const EntitypEntities = nullptr
 
WorldpWorld = nullptr
 
Entity id = EntityBad
 
uint32_t cnt = 0
 
const U * pDataInherited = nullptr
 
const ArchetypepLastArchetype = nullptr
 
Entity cachedOwner = EntityBad
 
bool cachedDirect = false
 

Detailed Description

template<typename U>
struct gaia::ecs::detail::EntityTermViewGet< U >

Read-only AoS term view fallback for APIs where storage mode is known only at runtime. Direct iteration paths should use EntityTermViewGetPointer/Entity instead.


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