DGtal
0.9.3
|
#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 368 of file BasicFunctors.h.
typedef T DGtal::functors::Thresholder< T, isLower, isEqual >::Input |
Definition at line 375 of file BasicFunctors.h.
|
inline |
Constructor.
aT | the threshold value (default 0). |
Definition at line 381 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 387 of file BasicFunctors.h.
|
private |
Threshold value
Definition at line 395 of file BasicFunctors.h.