tags Folder
Files Index
| file | helios/engine/common/tags/_module.ixx |
|
Aggregate module re-exporting all engine role tags. More... | |
| file | CommandBufferRole.ixx |
|
Tag type for identifying CommandBuffer-role classes at compile time. More... | |
| file | ManagerRole.ixx |
|
Tag type for identifying Manager-role classes at compile time. More... | |
| file | SystemRole.ixx |
|
Tag type for identifying System-role classes at compile time. More... | |
Description
helios::engine::common::tags
Compile-time tag types for engine role classification.
Overview
Tag types are empty structs used as compile-time markers. A class declares its engine role by adding a nested type alias:
using EngineRoleTag = helios::engine::common::tags::SystemRole;
The concepts module detects this alias via HasTag and uses it to gate registration APIs, preventing accidental registration of types that happen to have matching method signatures.
Tags
| Tag | Role | Detected by |
|---|---|---|
| ManagerRole | Batch-processing manager | IsManagerLike<T> |
| SystemRole | Per-frame game logic processor | IsSystemLike<T> |
Usage
class MySystem {
public:
using EngineRoleTag = helios::engine::common::tags::SystemRole;
void update(UpdateContext& ctx) noexcept {
// per-frame logic
}
};
See Also
- Concepts — Role concepts consuming these tags
- System — System architecture
- Command System — Manager registration
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.