Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
helios::ecs::ComponentTraits< T > Struct Template Reference

Component traits for optimization decisions. More...

#include <component.hpp>

Static Public Attributes

static constexpr bool kIsTrivial = TrivialComponentTrait<T>
 
static constexpr bool kIsTiny = TinyComponentTrait<T>
 
static constexpr bool kIsSmall = SmallComponentTrait<T>
 
static constexpr bool kIsMedium = MediumComponentTrait<T>
 
static constexpr bool kIsLarge = LargeComponentTrait<T>
 
static constexpr size_t kSize = sizeof(T)
 
static constexpr size_t kAlignment = alignof(T)
 

Detailed Description

template<ComponentTrait T>
struct helios::ecs::ComponentTraits< T >

Component traits for optimization decisions.

Definition at line 91 of file component.hpp.

Member Data Documentation

◆ kAlignment

template<ComponentTrait T>
constexpr size_t helios::ecs::ComponentTraits< T >::kAlignment = alignof(T)
staticconstexpr

Definition at line 98 of file component.hpp.

◆ kIsLarge

template<ComponentTrait T>
constexpr bool helios::ecs::ComponentTraits< T >::kIsLarge = LargeComponentTrait<T>
staticconstexpr

Definition at line 96 of file component.hpp.

◆ kIsMedium

template<ComponentTrait T>
constexpr bool helios::ecs::ComponentTraits< T >::kIsMedium = MediumComponentTrait<T>
staticconstexpr

Definition at line 95 of file component.hpp.

◆ kIsSmall

template<ComponentTrait T>
constexpr bool helios::ecs::ComponentTraits< T >::kIsSmall = SmallComponentTrait<T>
staticconstexpr

Definition at line 94 of file component.hpp.

◆ kIsTiny

template<ComponentTrait T>
constexpr bool helios::ecs::ComponentTraits< T >::kIsTiny = TinyComponentTrait<T>
staticconstexpr

Definition at line 93 of file component.hpp.

◆ kIsTrivial

template<ComponentTrait T>
constexpr bool helios::ecs::ComponentTraits< T >::kIsTrivial = TrivialComponentTrait<T>
staticconstexpr

Definition at line 92 of file component.hpp.

◆ kSize

template<ComponentTrait T>
constexpr size_t helios::ecs::ComponentTraits< T >::kSize = sizeof(T)
staticconstexpr

Definition at line 97 of file component.hpp.