Limbo 3.5.4
Loading...
Searching...
No Matches
limbo::solvers::lpmcf::hash_pair< T1, T2 > Class Template Reference

hash calculator for pairs More...

#include <LpDualMcf.h>

Inheritance diagram for limbo::solvers::lpmcf::hash_pair< T1, T2 >:

Public Types

typedef pair< T1, T2 > base_type

Public Member Functions

 hash_pair ()
 constructor
 hash_pair (first_type const &a, second_type const &b)
 constructor
 hash_pair (base_type const &rhs)
 copy constructor
bool operator== (base_type const &rhs) const
 override equality comparison

Friends

std::size_t hash_value (base_type const &key)
 compute hash value for a pair of data

Detailed Description

template<typename T1, typename T2>
class limbo::solvers::lpmcf::hash_pair< T1, T2 >

hash calculator for pairs

Template Parameters
T1first data type
T2second data type

Definition at line 55 of file LpDualMcf.h.

Member Typedef Documentation

◆ base_type

template<typename T1, typename T2>
typedef pair<T1, T2> limbo::solvers::lpmcf::hash_pair< T1, T2 >::base_type

Definition at line 58 of file LpDualMcf.h.

Constructor & Destructor Documentation

◆ hash_pair() [1/3]

template<typename T1, typename T2>
limbo::solvers::lpmcf::hash_pair< T1, T2 >::hash_pair ( )
inline

constructor

Definition at line 64 of file LpDualMcf.h.

◆ hash_pair() [2/3]

template<typename T1, typename T2>
limbo::solvers::lpmcf::hash_pair< T1, T2 >::hash_pair ( first_type const & a,
second_type const & b )
inline

constructor

Parameters
afirst data value
bsecond data value

Definition at line 68 of file LpDualMcf.h.

◆ hash_pair() [3/3]

template<typename T1, typename T2>
limbo::solvers::lpmcf::hash_pair< T1, T2 >::hash_pair ( base_type const & rhs)
inline

copy constructor

Parameters
rhsa pair of data

Definition at line 71 of file LpDualMcf.h.

Member Function Documentation

◆ operator==()

template<typename T1, typename T2>
bool limbo::solvers::lpmcf::hash_pair< T1, T2 >::operator== ( base_type const & rhs) const
inline

override equality comparison

Parameters
rhsa pair of data in the right hand side
Returns
true if two pairs are equal

Definition at line 76 of file LpDualMcf.h.

◆ hash_value

template<typename T1, typename T2>
std::size_t hash_value ( base_type const & key)
friend

compute hash value for a pair of data

Parameters
keya pair of data
Returns
hash value

Definition at line 82 of file LpDualMcf.h.


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