spot
0.9.1
|
Hash Function for state*
.This is meant to be used as a hash functor for Sgi's hash_map
whose key are of type state*
.
More...
#include <tgba/state.hh>
Public Member Functions | |
size_t | operator() (const state *that) const |
Hash Function for state*
.
This is meant to be used as a hash functor for Sgi's hash_map
whose key are of type state*
.
For instance here is how one could declare a map of state*
.
// Remember how many times each state has been visited. Sgi::hash_map<spot::state*, int, spot::state_ptr_hash, spot::state_ptr_equal> seen;
size_t spot::state_ptr_hash::operator() | ( | const state * | that | ) | const [inline] |
References spot::state::hash().