CommandTypeId.ixx File
Unique type identifier for command types. More...
Included Headers
#include <functional>
#include <cstddef>
#include <helios.ecs.types>
#include <helios.ecs.TypeIndexer>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | runtime |
| namespace | messaging |
| namespace | command |
| namespace | types |
Classes Index
| class | CommandTypeId |
|
Unique type identifier for command types. More... | |
| struct | helios_engine_common_tag_CommandTypes |
|
Tag type for the TypeIndexer domain. More... | |
| struct | hash<helios::engine::runtime::messaging::command::types::CommandTypeId> |
|
Hash specialization for CommandTypeId. More... | |
Description
Unique type identifier for command types.
File Listing
The file content with the documentation metadata removed is:
15export namespace helios::engine::runtime::messaging::command::types {
30 class CommandTypeId {
53 explicit CommandTypeId(const size_t id) : id_(id) {}
61 explicit CommandTypeId(helios::ecs::types::no_init_t) {}
85 [[nodiscard]] static CommandTypeId id() {
86 static const size_t tid = helios::ecs::TypeIndexer<ComponentType>::typeIndex<T>();
87 return CommandTypeId(tid);
90 friend constexpr bool operator==(CommandTypeId, CommandTypeId) noexcept = default;
102 std::size_t operator()(const helios::engine::runtime::messaging::command::types::CommandTypeId& id) const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.