DGtal  1.5.beta
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

◆ KeyComparatorForPairKeyData()

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

◆ operator()()

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.

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

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

Field Documentation

◆ compare

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

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