Skip to main content

tags Folder

Files Index

filehelios/engine/common/tags/_module.ixx

Aggregate module re-exporting all engine role tags. More...

fileCommandBufferRole.ixx

Tag type for identifying CommandBuffer-role classes at compile time. More...

fileManagerRole.ixx

Tag type for identifying Manager-role classes at compile time. More...

fileSystemRole.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:

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

TagRoleDetected by
ManagerRoleBatch-processing managerIsManagerLike<T>
SystemRolePer-frame game logic processorIsSystemLike<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.