DGtal 2.0.0
Loading...
Searching...
No Matches
DGtal::functors::Thresholder< T, true, false > Struct Template Reference

#include <DGtal/base/BasicFunctors.h>

Inheritance diagram for DGtal::functors::Thresholder< T, true, false >:
[legend]

Public Types

typedef T Input

Public Member Functions

 BOOST_CONCEPT_ASSERT ((boost::EqualityComparable< T >))
 BOOST_CONCEPT_ASSERT ((boost::LessThanComparable< T >))
 Thresholder (const Input &aT=0)
bool operator() (const Input &aI) const

Private Attributes

Input myT

Detailed Description

template<typename T>
struct DGtal::functors::Thresholder< T, true, false >

Definition at line 570 of file BasicFunctors.h.

Member Typedef Documentation

◆ Input

template<typename T>
typedef T DGtal::functors::Thresholder< T, true, false >::Input

Definition at line 576 of file BasicFunctors.h.

Constructor & Destructor Documentation

◆ Thresholder()

template<typename T>
DGtal::functors::Thresholder< T, true, false >::Thresholder ( const Input & aT = 0)
inline

Definition at line 578 of file BasicFunctors.h.

578:myT(aT) {}
Aim: A small functor with an operator () that compares one value to a threshold value according to tw...

References myT.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT() [1/2]

template<typename T>
DGtal::functors::Thresholder< T, true, false >::BOOST_CONCEPT_ASSERT ( (boost::EqualityComparable< T >) )

◆ BOOST_CONCEPT_ASSERT() [2/2]

template<typename T>
DGtal::functors::Thresholder< T, true, false >::BOOST_CONCEPT_ASSERT ( (boost::LessThanComparable< T >) )

◆ operator()()

template<typename T>
bool DGtal::functors::Thresholder< T, true, false >::operator() ( const Input & aI) const
inline

Definition at line 580 of file BasicFunctors.h.

580 {
582 return c(aI,myT);
583 }

References myT.

Field Documentation

◆ myT

template<typename T>
Input DGtal::functors::Thresholder< T, true, false >::myT
private

Definition at line 586 of file BasicFunctors.h.

Referenced by operator()(), and Thresholder().


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