DGtal  0.9.4beta
Public Member Functions | Data Fields
DGtal::detail::KeyComparatorForPairKeyData< KeyComparator, PairKeyData > Struct Template Reference

#include <DGtal/base/SetFunctions.h>

Public Member Functions

 KeyComparatorForPairKeyData (KeyComparator aCompare)
 
bool operator() (const PairKeyData &t1, const PairKeyData &t2) const
 

Data Fields

KeyComparator compare
 

Detailed Description

template<typename KeyComparator, typename PairKeyData>
struct DGtal::detail::KeyComparatorForPairKeyData< KeyComparator, PairKeyData >

Definition at line 63 of file SetFunctions.h.

Constructor & Destructor Documentation

template<typename KeyComparator , typename PairKeyData >
DGtal::detail::KeyComparatorForPairKeyData< KeyComparator, PairKeyData >::KeyComparatorForPairKeyData ( KeyComparator  aCompare)
inline

Definition at line 65 of file SetFunctions.h.

66  : compare( aCompare ) {}

Member Function Documentation

template<typename KeyComparator , typename PairKeyData >
bool DGtal::detail::KeyComparatorForPairKeyData< KeyComparator, PairKeyData >::operator() ( const PairKeyData &  t1,
const PairKeyData &  t2 
) const
inline

Definition at line 67 of file SetFunctions.h.

References DGtal::detail::KeyComparatorForPairKeyData< KeyComparator, PairKeyData >::compare.

68  {
69  return compare( t1.first, t2.first );
70  }

Field Documentation

template<typename KeyComparator , typename PairKeyData >
KeyComparator DGtal::detail::KeyComparatorForPairKeyData< KeyComparator, PairKeyData >::compare

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