Gaia-ECS v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::Component Struct Referencefinal

Classes

struct  InternalData
 

Public Member Functions

 Component (uint32_t id, uint32_t soa, uint32_t size, uint32_t alig) noexcept
 
GAIA_NODISCARD constexpr auto id () const noexcept
 
GAIA_NODISCARD constexpr auto soa () const noexcept
 
GAIA_NODISCARD constexpr auto size () const noexcept
 
GAIA_NODISCARD constexpr auto alig () const noexcept
 
GAIA_NODISCARD constexpr auto value () const noexcept
 
GAIA_NODISCARD constexpr bool operator== (Component other) const noexcept
 
GAIA_NODISCARD constexpr bool operator!= (Component other) const noexcept
 
GAIA_NODISCARD constexpr bool operator< (Component other) const noexcept
 

Public Attributes

union { 
 
   InternalData   data 
 
   Identifier   val 
 
};  
 

Static Public Attributes

static constexpr uint32_t IdMask = IdentifierIdBad
 
static constexpr uint32_t MaxAlignment_Bits = 10
 
static constexpr uint32_t MaxAlignment = (1U << MaxAlignment_Bits) - 1
 
static constexpr uint32_t MaxComponentSize_Bits = 12
 
static constexpr uint32_t MaxComponentSizeInBytes = (1 << MaxComponentSize_Bits) - 1
 

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