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

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

#include <chunk_iterator.h>

Public Member Functions

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

Static Public Member Functions

static EntityTermViewSet pointer (U *pData, uint32_t cnt)
 
static EntityTermViewSet entity (const Entity *pEntities, World *pWorld, Entity id, uint32_t cnt, bool writeIm=true)
 

Public Attributes

U * pData = nullptr
 
const EntitypEntities = nullptr
 
WorldpWorld = nullptr
 
Entity id = EntityBad
 
uint32_t cnt = 0
 
bool writeIm = true
 

Detailed Description

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

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


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