StateTypeId Class
Declaration
Private Member Typedefs Index
| using | StateType = helios_engine_common_tag_StateTypes |
Friends Index
| constexpr bool | operator== |
Public Constructors Index
| StateTypeId (helios::ecs::types::no_init_t) | |
|
Constructs an uninitialized StateTypeId. More... | |
Private Constructors Index
| StateTypeId (const size_t id) | |
|
Private constructor for internal use. More... | |
Public Member Functions Index
| size_t | value () const noexcept |
|
Returns the underlying ID value. More... | |
Private Member Attributes Index
| size_t | id_ {0} |
|
The underlying ID value. More... | |
Public Static Functions Index
template <typename T> | |
| static StateTypeId | id () |
|
Gets the StateTypeId for a specific component type. More... | |
Definition at line 15 of file StateTypeId.ixx.
Private Member Typedefs
StateType
|
Definition at line 22 of file StateTypeId.ixx.
Friends
operator==
| constexpr noexcept default |
Definition at line 70 of file StateTypeId.ixx.
Public Constructors
StateTypeId()
| inline explicit |
Constructs an uninitialized StateTypeId.
- Parameters
-
helios::ecs::types::no_init_t Tag to indicate no initialization.
Definition at line 43 of file StateTypeId.ixx.
Private Constructors
StateTypeId()
Private constructor for internal use.
- Parameters
-
id The type ID value.
Definition at line 34 of file StateTypeId.ixx.
Public Static Functions
id()
| inline static |
Gets the StateTypeId for a specific component type.
Uses TypeIndexer to generate a unique, monotonically increasing ID for each component type. The ID is generated once per type and cached.
- Template Parameters
-
T The component type. Must be a concrete type (not abstract).
- Returns
The unique StateTypeId for type T.
Definition at line 65 of file StateTypeId.ixx.
Reference helios::registerComponents.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.