Hashmap lookup structure used for Entity.
More...
#include <query_common.h>
|
|
using | LookupHash = core::direct_hash_key< uint64_t > |
| | Direct hash value cached for the packed query handle.
|
| |
|
|
static constexpr bool | IsDirectHashKey = true |
| | Indicates that Gaia containers may consume hash() without rehashing the key.
|
| |
Hashmap lookup structure used for Entity.
◆ QueryHandleLookupKey()
| gaia::ecs::QueryHandleLookupKey::QueryHandleLookupKey |
( |
QueryHandle |
handle | ) |
|
|
inlineexplicit |
Constructs a lookup key and precomputes its hash.
- Parameters
-
| handle | Query handle represented by the key. |
◆ handle()
| QueryHandle gaia::ecs::QueryHandleLookupKey::handle |
( |
| ) |
const |
|
inline |
Returns the represented query handle.
- Returns
- Query handle stored by the lookup key.
◆ hash()
| size_t gaia::ecs::QueryHandleLookupKey::hash |
( |
| ) |
const |
|
inline |
Returns the precomputed container hash.
- Returns
- Hash of the packed query handle.
◆ operator!=()
Compares lookup keys for inequality.
- Parameters
-
| other | Lookup key to compare. |
- Returns
- True when the represented handles differ.
◆ operator==()
Compares lookup keys using their cached hashes and handles.
- Parameters
-
| other | Lookup key to compare. |
- Returns
- True when both keys represent the same query handle.
The documentation for this struct was generated from the following file: