Helios Engine
A modular ECS based data-oriented C++23 game engine framework
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 size_t kSize = sizeof(T)
static constexpr size_t kAlignment = alignof(T)
static constexpr ComponentStorageType kStorageType
static constexpr bool kIsTag = TagComponentTrait<T>

Detailed Description

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

Component traits for optimization decisions.

Template Parameters
TComponent type

Definition at line 156 of file component.hpp.

Member Data Documentation

◆ kAlignment

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

Definition at line 158 of file component.hpp.

◆ kIsTag

template<ComponentTrait T>
bool helios::ecs::ComponentTraits< T >::kIsTag = TagComponentTrait<T>
staticconstexpr

Definition at line 161 of file component.hpp.

◆ kSize

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

Definition at line 157 of file component.hpp.

◆ kStorageType

template<ComponentTrait T>
ComponentStorageType helios::ecs::ComponentTraits< T >::kStorageType
staticconstexpr
Initial value:
=
consteval ComponentStorageType ComponentStorageTypeOf() noexcept
Component storage type.

Definition at line 159 of file component.hpp.