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

Mutable field proxy for a single SoA member in entity-backed storage. Updates reconstruct the whole value, modify one field and store it back. More...

#include <chunk_iterator.h>

Classes

struct  ElementProxy
 Proxy representing one writable field element in entity-backed storage. More...
 

Public Types

using view_policy = mem::data_view_policy_soa_set< U::gaia_Data_Layout, U >
 
using value_type = typename view_policy::template data_view_policy_idx_info< Item >::value_type
 

Public Member Functions

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

Public Attributes

const EntitypEntities = nullptr
 
WorldpWorld = nullptr
 
Entity id = EntityBad
 
uint32_t cnt = 0
 

Detailed Description

template<typename U, size_t Item, bool WriteIm>
struct gaia::ecs::detail::SoATermFieldWriteProxyEntity< U, Item, WriteIm >

Mutable field proxy for a single SoA member in entity-backed storage. Updates reconstruct the whole value, modify one field and store it back.


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