DGtal 1.3.0
|
Aim: Define a new Functor from the composition of two other functors. More...
#include <DGtal/base/BasicFunctors.h>
Public Types | |
typedef ReturnType | Value |
Necessary for DistanceVisitor. More... | |
Public Member Functions | |
Composer () | |
Composer (const TFunctor1 &aF1, const TFunctor2 &aF2) | |
Composer (const Composer &other) | |
Composer & | operator= (const Composer &other) |
template<typename TInput > | |
ReturnType | operator() (const TInput &aInput) const |
Private Attributes | |
const TFunctor1 * | myF1 |
const TFunctor2 * | myF2 |
Aim: Define a new Functor from the composition of two other functors.
Description of template class 'Composer'
TFunctor1 | first functor |
TFunctor2 | second functor |
ReturnType | return type |
Definition at line 417 of file BasicFunctors.h.
typedef ReturnType DGtal::functors::Composer< TFunctor1, TFunctor2, ReturnType >::Value |
Necessary for DistanceVisitor.
Definition at line 421 of file BasicFunctors.h.
|
inline |
|
inline |
Constructor
aF1 | any Functor |
aF2 | any Functor |
Definition at line 432 of file BasicFunctors.h.
|
inline |
|
inline |
Operator ()
NB: myF2 return type should be equal to (or implicitly castable into) ReturnType
TInput | type of the input value |
Definition at line 468 of file BasicFunctors.h.
References DGtal::functors::Composer< TFunctor1, TFunctor2, ReturnType >::myF1, and DGtal::functors::Composer< TFunctor1, TFunctor2, ReturnType >::myF2.
|
inline |
Assignement Operator
other | object to copy |
Definition at line 443 of file BasicFunctors.h.
References DGtal::functors::Composer< TFunctor1, TFunctor2, ReturnType >::myF1, and DGtal::functors::Composer< TFunctor1, TFunctor2, ReturnType >::myF2.
|
private |
Aliasing pointer to the first functor.
Definition at line 479 of file BasicFunctors.h.
Referenced by DGtal::functors::Composer< TFunctor1, TFunctor2, ReturnType >::operator()(), and DGtal::functors::Composer< TFunctor1, TFunctor2, ReturnType >::operator=().
|
private |
Aliasing pointer to the second functor.
Definition at line 483 of file BasicFunctors.h.
Referenced by DGtal::functors::Composer< TFunctor1, TFunctor2, ReturnType >::operator()(), and DGtal::functors::Composer< TFunctor1, TFunctor2, ReturnType >::operator=().