DGtal 1.3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes
DGtal::functors::IntervalThresholder< T > Class Template Reference

Aim: A small functor with an operator () that compares one value to an interval. More...

#include <DGtal/base/BasicFunctors.h>

Public Types

typedef T Input
 input type More...
 
typedef Thresholder< T, false, true > Tlow
 predicates type More...
 
typedef Thresholder< T, true, true > Tup
 
typedef PredicateCombiner< Tlow, Tup, AndBoolFct2CombinedPredicate
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((boost::EqualityComparable< T >))
 
 BOOST_CONCEPT_ASSERT ((boost::LessThanComparable< T >))
 
 IntervalThresholder (const Input &low, const Input &up)
 
bool operator() (const Input &aI) const
 

Private Attributes

Tlow myTlow
 
Tup myTup
 
CombinedPredicate myPred
 

Detailed Description

template<typename T>
class DGtal::functors::IntervalThresholder< T >

Aim: A small functor with an operator () that compares one value to an interval.

template class IntervalThresholder

Template Parameters
Ttype for a value that must be equality and less-than comparable

Definition at line 700 of file BasicFunctors.h.

Member Typedef Documentation

◆ CombinedPredicate

template<typename T >
typedef PredicateCombiner<Tlow,Tup,AndBoolFct2 > DGtal::functors::IntervalThresholder< T >::CombinedPredicate

Definition at line 712 of file BasicFunctors.h.

◆ Input

template<typename T >
typedef T DGtal::functors::IntervalThresholder< T >::Input

input type

Definition at line 707 of file BasicFunctors.h.

◆ Tlow

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

predicates type

Definition at line 710 of file BasicFunctors.h.

◆ Tup

template<typename T >
typedef Thresholder<T,true,true> DGtal::functors::IntervalThresholder< T >::Tup

Definition at line 711 of file BasicFunctors.h.

Constructor & Destructor Documentation

◆ IntervalThresholder()

template<typename T >
DGtal::functors::IntervalThresholder< T >::IntervalThresholder ( const Input low,
const Input up 
)
inline

Constructor.

Parameters
lowlower threshold.
upupper threshold.

Definition at line 719 of file BasicFunctors.h.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT() [1/2]

template<typename T >
DGtal::functors::IntervalThresholder< T >::BOOST_CONCEPT_ASSERT ( (boost::EqualityComparable< T >)  )

◆ BOOST_CONCEPT_ASSERT() [2/2]

template<typename T >
DGtal::functors::IntervalThresholder< T >::BOOST_CONCEPT_ASSERT ( (boost::LessThanComparable< T >)  )

◆ operator()()

template<typename T >
bool DGtal::functors::IntervalThresholder< T >::operator() ( const Input aI) const
inline

Compares aI to @ myT.

Parameters
aIany input value
Returns
'true' or 'false' according to myPred

Definition at line 728 of file BasicFunctors.h.

729 {
730 return myPred(aI);
731 }

References DGtal::functors::IntervalThresholder< T >::myPred.

Field Documentation

◆ myPred

template<typename T >
CombinedPredicate DGtal::functors::IntervalThresholder< T >::myPred
private

Combined predicate

Definition at line 744 of file BasicFunctors.h.

Referenced by DGtal::functors::IntervalThresholder< T >::operator()().

◆ myTlow

template<typename T >
Tlow DGtal::functors::IntervalThresholder< T >::myTlow
private

First thresholder

Definition at line 736 of file BasicFunctors.h.

◆ myTup

template<typename T >
Tup DGtal::functors::IntervalThresholder< T >::myTup
private

Second thresholder

Definition at line 740 of file BasicFunctors.h.


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