DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Private Attributes
DGtal::IntervalThresholder< T > Class Template Reference

#include <BasicFunctors.h>

Collaboration diagram for DGtal::IntervalThresholder< T >:
Collaboration graph
[legend]

Public Types

typedef T Input
typedef Thresholder< T, false,
true > 
Tlow
typedef Thresholder< T, true,
true > 
Tup
typedef PredicateCombiner
< Tlow, Tup, AndBoolFct2
CombinedPredicate

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::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 478 of file BasicFunctors.h.


Member Typedef Documentation

Definition at line 490 of file BasicFunctors.h.

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

input type

Definition at line 485 of file BasicFunctors.h.

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

predicates type

Definition at line 488 of file BasicFunctors.h.

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

Definition at line 489 of file BasicFunctors.h.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
lowlower threshold.
upupper threshold.

Definition at line 497 of file BasicFunctors.h.

: myTlow( low), myTup ( up ),
myPred( myTlow, myTup, AndBoolFct2() ) {};

Member Function Documentation

template<typename T>
DGtal::IntervalThresholder< T >::BOOST_CONCEPT_ASSERT ( (boost::EqualityComparable< T >)  )
template<typename T>
DGtal::IntervalThresholder< T >::BOOST_CONCEPT_ASSERT ( (boost::LessThanComparable< T >)  )
template<typename T>
bool DGtal::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 506 of file BasicFunctors.h.

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

{
return myPred(aI);
}

Field Documentation

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

Combined predicate

Definition at line 522 of file BasicFunctors.h.

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

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

First thresholder

Definition at line 514 of file BasicFunctors.h.

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

Second thresholder

Definition at line 518 of file BasicFunctors.h.


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