StateTypeId.ixx File
Included Headers
#include <functional>
#include <cstddef>
#include <helios.ecs.types>
#include <helios.ecs.TypeIndexer>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | state |
| namespace | types |
Classes Index
| class | StateTypeId |
| struct | helios_engine_common_tag_StateTypes |
|
Tag type for the TypeIndexer domain. More... | |
| struct | hash<helios::engine::state::types::StateTypeId> |
|
std::hash specialization for StateTypeId. More... | |
File Listing
The file content with the documentation metadata removed is:
12export namespace helios::engine::state::types {
15 class StateTypeId {
34 explicit StateTypeId(const size_t id) : id_(id) {}
43 explicit StateTypeId(helios::ecs::types::no_init_t) {}
65 [[nodiscard]] static StateTypeId id() {
66 static const size_t tid = helios::ecs::TypeIndexer<StateType>::typeIndex<T>();
67 return StateTypeId(tid);
70 friend constexpr bool operator==(StateTypeId, StateTypeId) noexcept = default;
84 std::size_t operator()(const helios::engine::state::types::StateTypeId& id) const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.