JaffarPlus
High-performance best-first search optimizer for tool-assisted speedruns
Loading...
Searching...
No Matches
jaffarPlus::Playback::hashHasher_t Struct Reference

Hash functor for 128-bit state hashes (std::pair<uint64_t, uint64_t>). More...

Public Member Functions

size_t operator() (const jaffarCommon::hash::hash_t &h) const noexcept
 Combines the two 64-bit halves of a state hash into a size_t.
 

Detailed Description

Hash functor for 128-bit state hashes (std::pair<uint64_t, uint64_t>).

Lets a state hash key an unordered_map for O(1) duplicate-state lookup.

Definition at line 261 of file playback.hpp.

Member Function Documentation

◆ operator()()

size_t jaffarPlus::Playback::hashHasher_t::operator() ( const jaffarCommon::hash::hash_t &  h) const
inlinenoexcept

Combines the two 64-bit halves of a state hash into a size_t.

Parameters
hThe 128-bit state hash to reduce.
Returns
The combined hash value.

Definition at line 268 of file playback.hpp.


The documentation for this struct was generated from the following file: