DGtal  0.9.4beta
Public Types | Static Public Member Functions
DGtal::detail::ComparatorAdapter< Container, true, false, true > Struct Template Reference

#include <DGtal/base/SetFunctions.h>

Public Types

typedef Container::value_type value_type
 
typedef Container::key_type key_type
 
typedef KeyComparatorForPairKeyData< std::less< key_type >, value_typeLessThanPredicate
 
typedef KeyComparatorForPairKeyData< std::equal_to< key_type >, value_typeEqualPredicate
 

Static Public Member Functions

static LessThanPredicate less (const Container &)
 
static EqualPredicate equal_to (const Container &)
 
static const key_typekey (const value_type &value)
 

Detailed Description

template<typename Container>
struct DGtal::detail::ComparatorAdapter< Container, true, false, true >

unordered map-like adapter.

Definition at line 169 of file SetFunctions.h.

Member Typedef Documentation

template<typename Container >
typedef KeyComparatorForPairKeyData< std::equal_to< key_type >, value_type > DGtal::detail::ComparatorAdapter< Container, true, false, true >::EqualPredicate

Definition at line 176 of file SetFunctions.h.

template<typename Container >
typedef Container::key_type DGtal::detail::ComparatorAdapter< Container, true, false, true >::key_type

Definition at line 172 of file SetFunctions.h.

template<typename Container >
typedef KeyComparatorForPairKeyData< std::less< key_type >, value_type > DGtal::detail::ComparatorAdapter< Container, true, false, true >::LessThanPredicate

Definition at line 174 of file SetFunctions.h.

template<typename Container >
typedef Container::value_type DGtal::detail::ComparatorAdapter< Container, true, false, true >::value_type

Definition at line 171 of file SetFunctions.h.

Member Function Documentation

template<typename Container >
static EqualPredicate DGtal::detail::ComparatorAdapter< Container, true, false, true >::equal_to ( const Container &  )
inlinestatic

Definition at line 182 of file SetFunctions.h.

183  {
184  return EqualPredicate( std::equal_to< key_type >() );
185  }
KeyComparatorForPairKeyData< std::equal_to< key_type >, value_type > EqualPredicate
Definition: SetFunctions.h:176
template<typename Container >
static const key_type& DGtal::detail::ComparatorAdapter< Container, true, false, true >::key ( const value_type value)
inlinestatic

Definition at line 186 of file SetFunctions.h.

187  {
188  return value.first;
189  }
template<typename Container >
static LessThanPredicate DGtal::detail::ComparatorAdapter< Container, true, false, true >::less ( const Container &  )
inlinestatic

Definition at line 178 of file SetFunctions.h.

179  {
180  return LessThanPredicate( std::less< key_type >() );
181  }
KeyComparatorForPairKeyData< std::less< key_type >, value_type > LessThanPredicate
Definition: SetFunctions.h:174

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