Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Friends | List of all members
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 More...
 
 hash_pair (base_type const &rhs)
 copy constructor More...
 
bool operator== (base_type const &rhs) const
 override equality comparison More...
 

Friends

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

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.

Constructor & Destructor Documentation

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.

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

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.

Friends And Related Function Documentation

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: