spot  2.16
Public Member Functions | List of all members
spot::state_shared_ptr_equal Struct Reference

An Equivalence Relation for shared_state. More...

#include <spot/twa/twa.hh>

Collaboration diagram for spot::state_shared_ptr_equal:

Public Member Functions

bool operator() (shared_state left, shared_state right) const
 Test two shared states for equality via state::compare(). More...
 

Detailed Description

An Equivalence Relation for shared_state.

This is meant to be used as a comparison functor for an unordered_map whose keys are of type shared_state. For instance here is how one could declare a map of shared_state.

// Remember how many times each state has been visited.
std::unordered_map<shared_state, int,
state_shared_ptr_hash,
state_shared_ptr_equal> seen;
std::shared_ptr< const state > shared_state
Shared pointer to a const state.
Definition: twa.hh:272
See also
shared_state_set

Member Function Documentation

◆ operator()()

bool spot::state_shared_ptr_equal::operator() ( shared_state  left,
shared_state  right 
) const
inline

Test two shared states for equality via state::compare().


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

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.1