DGtal
1.5.beta
|
Aim: A small functor with an operator () that compares one value to a threshold value according to two bool template parameters. More...
#include <DGtal/base/BasicFunctors.h>
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 |
Aim: A small functor with an operator () that compares one value to a threshold value according to two bool template parameters.
// template class Thresholder
T | type for a value that must be equally and less-than comparable |
isLower | a bool for the comparison sign : 'true' for < (default), 'false' for < |
isEqual | a bool for the equality : 'true' for a large inequality (default), 'false' for a strict one |
Definition at line 500 of file BasicFunctors.h.
typedef T DGtal::functors::Thresholder< T, isLower, isEqual >::Input |
Definition at line 506 of file BasicFunctors.h.
|
inline |
Constructor.
aT | the threshold value (default 0). |
Definition at line 512 of file BasicFunctors.h.
DGtal::functors::Thresholder< T, isLower, isEqual >::BOOST_CONCEPT_ASSERT | ( | (boost::EqualityComparable< T >) | ) |
DGtal::functors::Thresholder< T, isLower, isEqual >::BOOST_CONCEPT_ASSERT | ( | (boost::LessThanComparable< T >) | ) |
|
inline |
Compares aI to @ myT.
aI | any input value |
Definition at line 518 of file BasicFunctors.h.
References DGtal::functors::Thresholder< T, isLower, isEqual >::myT.
|
private |
Threshold value
Definition at line 526 of file BasicFunctors.h.
Referenced by DGtal::functors::Thresholder< T, isLower, isEqual >::operator()(), DGtal::functors::Thresholder< T, false, false >::operator()(), DGtal::functors::Thresholder< T, false, true >::operator()(), DGtal::functors::Thresholder< T, true, false >::operator()(), and DGtal::functors::Thresholder< T, true, true >::operator()().