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

#include <DGtal/base/SetFunctions.h>

Public Types

typedef Container::value_type value_type
 
typedef std::less< value_typeLessThanPredicate
 
typedef std::equal_to< value_typeEqualPredicate
 

Static Public Member Functions

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

Detailed Description

template<typename Container, bool associative, bool ordered, bool pair>
struct DGtal::detail::ComparatorAdapter< Container, associative, ordered, pair >

Default container (like vector or list), takes value_type and standard value comparators.

Definition at line 76 of file SetFunctions.h.

Member Typedef Documentation

◆ EqualPredicate

template<typename Container , bool associative, bool ordered, bool pair>
typedef std::equal_to< value_type > DGtal::detail::ComparatorAdapter< Container, associative, ordered, pair >::EqualPredicate

Definition at line 80 of file SetFunctions.h.

◆ LessThanPredicate

template<typename Container , bool associative, bool ordered, bool pair>
typedef std::less< value_type > DGtal::detail::ComparatorAdapter< Container, associative, ordered, pair >::LessThanPredicate

Definition at line 79 of file SetFunctions.h.

◆ value_type

template<typename Container , bool associative, bool ordered, bool pair>
typedef Container::value_type DGtal::detail::ComparatorAdapter< Container, associative, ordered, pair >::value_type

Definition at line 78 of file SetFunctions.h.

Member Function Documentation

◆ equal_to()

template<typename Container , bool associative, bool ordered, bool pair>
static EqualPredicate DGtal::detail::ComparatorAdapter< Container, associative, ordered, pair >::equal_to ( const Container &  )
inlinestatic

Definition at line 85 of file SetFunctions.h.

86 {
87 return EqualPredicate();
88 }
std::equal_to< value_type > EqualPredicate
Definition: SetFunctions.h:80

◆ key()

template<typename Container , bool associative, bool ordered, bool pair>
static const value_type & DGtal::detail::ComparatorAdapter< Container, associative, ordered, pair >::key ( const value_type value)
inlinestatic

Definition at line 89 of file SetFunctions.h.

90 {
91 return value;
92 }

◆ less()

template<typename Container , bool associative, bool ordered, bool pair>
static LessThanPredicate DGtal::detail::ComparatorAdapter< Container, associative, ordered, pair >::less ( const Container &  )
inlinestatic

Definition at line 81 of file SetFunctions.h.

82 {
83 return LessThanPredicate();
84 }
std::less< value_type > LessThanPredicate
Definition: SetFunctions.h:79

Referenced by DGtal::detail::ComparatorAdapter< Container, true, true, true >::equal_to().


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