SystemTypeId.ixx File
Unique type identifier for system 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 | world |
| namespace | types |
Classes Index
| class | SystemTypeId |
|
Unique type identifier for system types. More... | |
| struct | helios_engine_common_tag_SystemTypes |
|
Tag type for the TypeIndexer domain. More... | |
| struct | hash<helios::engine::runtime::world::types::SystemTypeId> |
|
Hash specialization for SystemTypeId. More... | |
Description
Unique type identifier for system types.
File Listing
The file content with the documentation metadata removed is:
15export namespace helios::engine::runtime::world::types {
28 class SystemTypeId {
51 explicit SystemTypeId(const size_t id) : id_(id) {}
59 explicit SystemTypeId(helios::ecs::types::no_init_t) {}
83 [[nodiscard]] static SystemTypeId id() {
84 static const size_t tid = helios::ecs::TypeIndexer<SystemType>::typeIndex<T>();
85 return SystemTypeId(tid);
88 friend constexpr bool operator==(SystemTypeId, SystemTypeId) noexcept = default;
100 std::size_t operator()(const helios::engine::runtime::world::types::SystemTypeId& id) const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.