DGtal 1.3.0
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions
DGtal::detail::ComparatorAdapter< Container, true, true, true > Struct Template Reference

Map-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 KeyComparatorForPairKeyData< key_compare, value_typeLessThanPredicate
 
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, true >

Map-like adapter.

Definition at line 122 of file SetFunctions.h.

Member Typedef Documentation

◆ EqualPredicate

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

Definition at line 130 of file SetFunctions.h.

◆ key_compare

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

Definition at line 126 of file SetFunctions.h.

◆ key_type

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

Definition at line 125 of file SetFunctions.h.

◆ LessThanPredicate

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

Definition at line 128 of file SetFunctions.h.

◆ value_type

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

Definition at line 124 of file SetFunctions.h.

Member Function Documentation

◆ equal_to()

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

Definition at line 135 of file SetFunctions.h.

136 {
137 return EqualPredicate( less( C ) );
138 }
static LessThanPredicate less(const Container &C)
Definition: SetFunctions.h:131
EqualPredicateFromLessThanComparator< LessThanPredicate, value_type > EqualPredicate
Definition: SetFunctions.h:130

References DGtal::detail::ComparatorAdapter< Container, associative, ordered, pair >::less().

◆ key()

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

Definition at line 139 of file SetFunctions.h.

140 {
141 return value.first;
142 }

◆ less()

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

Definition at line 131 of file SetFunctions.h.

132 {
133 return LessThanPredicate( C.key_comp() );
134 }
KeyComparatorForPairKeyData< key_compare, value_type > LessThanPredicate
Definition: SetFunctions.h:128

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