DGtal  1.5.beta
DGtal::detail::ComparatorAdapter< Container, true, true, false > Struct Template Reference

Set-like adapter. More...

#include <DGtal/base/SetFunctions.h>

Public Types

typedef Container::value_type value_type
 
typedef Container::key_type key_type
 
typedef Container::key_compare key_compare
 
typedef key_compare LessThanPredicate
 
typedef EqualPredicateFromLessThanComparator< LessThanPredicate, value_typeEqualPredicate
 

Static Public Member Functions

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

Detailed Description

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

Set-like adapter.

Definition at line 98 of file SetFunctions.h.

Member Typedef Documentation

◆ EqualPredicate

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

Definition at line 105 of file SetFunctions.h.

◆ key_compare

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

Definition at line 102 of file SetFunctions.h.

◆ key_type

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

Definition at line 101 of file SetFunctions.h.

◆ LessThanPredicate

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

Definition at line 103 of file SetFunctions.h.

◆ value_type

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

Definition at line 100 of file SetFunctions.h.

Member Function Documentation

◆ equal_to()

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

Definition at line 110 of file SetFunctions.h.

111  {
112  return EqualPredicate( C.key_comp() );
113  }
EqualPredicateFromLessThanComparator< LessThanPredicate, value_type > EqualPredicate
Definition: SetFunctions.h:105

◆ key()

template<typename Container >
static const key_type& DGtal::detail::ComparatorAdapter< Container, true, true, false >::key ( const value_type value)
inlinestatic

Definition at line 114 of file SetFunctions.h.

115  {
116  return value;
117  }

◆ less()

template<typename Container >
static LessThanPredicate DGtal::detail::ComparatorAdapter< Container, true, true, false >::less ( const Container &  C)
inlinestatic

Definition at line 106 of file SetFunctions.h.

107  {
108  return C.key_comp();
109  }

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