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

Mutable SoA field proxy fallback for APIs where storage mode is known only at runtime. Direct chunk-backed paths should use SoATermFieldWriteProxyPointer instead. More...

#include <chunk_iterator.h>

Classes

struct  ElementProxy
 Proxy representing a single writable SoA field element in the runtime fallback path only. Direct chunk-backed paths should use SoATermFieldWriteProxyPointer, which returns raw field references. More...
 

Public Types

using value_type = typename SoATermFieldWriteProxyPointer< U, Item >::value_type
 

Public Member Functions

GAIA_NODISCARD ElementProxy operator[] (size_t idx) const
 
GAIA_NODISCARD constexpr size_t size () const noexcept
 

Public Attributes

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

Detailed Description

template<typename U, size_t Item>
struct gaia::ecs::detail::SoATermFieldWriteProxy< U, Item >

Mutable SoA field proxy fallback for APIs where storage mode is known only at runtime. Direct chunk-backed paths should use SoATermFieldWriteProxyPointer instead.


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