EntityHandlePairHash Struct
Hash functor for pairs of EntityHandles. More...
Declaration
Public Operators Index
| std::uint64_t | operator() (const std::pair< helios::engine::ecs::EntityHandle, helios::engine::ecs::EntityHandle > &pair) const |
|
Computes a hash value for an EntityHandle pair. More... | |
Description
Hash functor for pairs of EntityHandles.
Enables the use of EntityHandle pairs as keys in unordered containers. The hash combines both handles using XOR with a bit-shift to reduce collision probability for symmetric pairs.
- Todo
-
switch to uint32_t once helios/#174 is implemented
Definition at line 120 of file GridCollisionDetectionSystem.ixx.
Public Operators
operator()()
| inline |
Computes a hash value for an EntityHandle pair.
- Parameters
-
pair The pair of EntityHandles to hash.
- Returns
A combined hash value for both handles.
Definition at line 129 of file GridCollisionDetectionSystem.ixx.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.