ComponentReflector Class Template
Generates and registers ComponentOps for a component type. More...
Declaration
Public Member Typedefs Index
template <typename TEntityManager> | |
| using | Handle_type = TEntityManager::Handle_type |
Public Static Functions Index
template <typename T> | |
| static void | registerType () |
|
Registers a component type with the reflection system. More... | |
Description
Generates and registers ComponentOps for a component type.
ComponentReflector uses compile-time trait detection to generate appropriate function pointers for each lifecycle hook that a component type implements. This enables zero-overhead conditional invocation at runtime.
Definition at line 75 of file ComponentReflector.ixx.
Public Member Typedefs
Handle_type
|
Definition at line 80 of file ComponentReflector.ixx.
Public Static Functions
registerType()
| inline static |
Registers a component type with the reflection system.
Generates ComponentOps function pointers based on which lifecycle hooks the type implements. Uses if constexpr for zero-overhead when hooks are not present.
- Template Parameters
-
T The component type to register. Must be copy-constructible for cloning support.
Definition at line 93 of file ComponentReflector.ixx.
References helios::ecs::types::ComponentOps::onAcquire and helios::ecs::ComponentOpsRegistry< THandle >::setOps.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.