ManagerTypeId.ixx File
Unique type identifier for engine resources. 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 | ManagerTypeId |
|
Unique type identifier for engine resources. More... | |
| struct | helios_engine_common_tag_ResourceTypes |
|
Tag type for the TypeIndexer domain. More... | |
| struct | hash<helios::engine::runtime::world::types::ManagerTypeId> |
|
Hash specialization for ManagerTypeId. More... | |
Description
Unique type identifier for engine resources.
File Listing
The file content with the documentation metadata removed is:
15export namespace helios::engine::runtime::world::types {
33 class ManagerTypeId {
56 explicit ManagerTypeId(const size_t id) : id_(id) {}
64 explicit ManagerTypeId(helios::ecs::types::no_init_t) {}
88 [[nodiscard]] static ManagerTypeId id() {
89 static const size_t tid = helios::ecs::TypeIndexer<ResourceType>::typeIndex<T>();
90 return ManagerTypeId(tid);
93 friend constexpr bool operator==(ManagerTypeId, ManagerTypeId) noexcept = default;
105 std::size_t operator()(const helios::engine::runtime::world::types::ManagerTypeId& id) const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.