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

Public Types

using CT = component_type_t< T >
 
using U = typename component_type_t< T >::Type
 
using DescU = typename CT::TypeFull
 

Static Public Member Functions

static constexpr ComponentLookupHash hash_lookup ()
 
static constexpr auto name ()
 
static constexpr uint32_t size ()
 
static constexpr uint32_t alig ()
 
static uint32_t soa (std::span< uint8_t, meta::StructToTupleMaxTypes > soaSizes)
 
static constexpr auto func_ctor ()
 
static constexpr auto func_dtor ()
 
static constexpr auto func_copy_ctor ()
 
static constexpr auto func_move_ctor ()
 
static constexpr auto func_copy ()
 
static constexpr auto func_move ()
 
static constexpr auto func_swap ()
 
static constexpr auto func_cmp ()
 
static constexpr auto func_save ()
 
static constexpr auto func_load ()
 
static ecs::ComponentDesc make (util::str_view descName, std::span< uint8_t, meta::StructToTupleMaxTypes > soaSizes)
 Builds the plain descriptor used by component cache registration.
 

Member Function Documentation

◆ make()

template<typename T >
static ecs::ComponentDesc gaia::ecs::detail::ComponentDesc< T >::make ( util::str_view  descName,
std::span< uint8_t, meta::StructToTupleMaxTypes >  soaSizes 
)
inlinestatic

Builds the plain descriptor used by component cache registration.

Parameters
descNameNormalized component symbol name.
soaSizesScratch/output storage for SoA element sizes. The returned descriptor keeps a non-owning pointer to this buffer and must be consumed before the buffer expires.
Returns
Component descriptor for the current component type.

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