ResourceTypeId.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 | ResourceTypeId |
|
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::ResourceTypeId> |
|
Hash specialization for ResourceTypeId. 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 ResourceTypeId {
56 explicit ResourceTypeId(const size_t id) : id_(id) {}
64 explicit ResourceTypeId(helios::ecs::types::no_init_t) {}
88 [[nodiscard]] static ResourceTypeId id() {
89 static const size_t tid = helios::ecs::TypeIndexer<ResourceType>::typeIndex<T>();
90 return ResourceTypeId(tid);
93 friend constexpr bool operator==(ResourceTypeId, ResourceTypeId) noexcept = default;
105 std::size_t operator()(const helios::engine::runtime::world::types::ResourceTypeId& id) const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.