|
|
using | ValueType = std::uint64_t |
|
|
constexpr | EntityId (uint32_t index, uint32_t generation) noexcept |
|
constexpr uint32_t | Index () const noexcept |
|
constexpr uint32_t | Generation () const noexcept |
|
constexpr ValueType | Raw () const noexcept |
|
constexpr bool | operator== (const EntityId &other) const noexcept=default |
|
constexpr bool | operator!= (const EntityId &other) const noexcept=default |
|
constexpr | operator bool () const noexcept |
|
|
static constexpr EntityId | Invalid () noexcept |
|
static constexpr EntityId | FromRaw (ValueType raw) noexcept |
|
|
static constexpr uint32_t | index_bits = 32 |
|
static constexpr uint32_t | generation_bits = 32 |
|
static constexpr ValueType | IndexMask = (ValueType{ 1 } << index_bits) - 1 |
|
static constexpr ValueType | GenerationMask = (ValueType{ 1 } << generation_bits) - 1 |
The documentation for this class was generated from the following file: