|
DGtal
0.6.devel
|
#include <BasicFunctors.h>
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 |
Definition at line 203 of file BasicFunctors.h.
|
inline |
|
inline |
Constructor
| aF1 | any Functor |
| aF2 | any Functor |
Definition at line 215 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 251 of file BasicFunctors.h.
References DGtal::Composer< TFunctor1, TFunctor2, ReturnType >::myF1, and DGtal::Composer< TFunctor1, TFunctor2, ReturnType >::myF2.
|
inline |
Assignement Operator
| other | object to copy |
Definition at line 226 of file BasicFunctors.h.
References DGtal::Composer< TFunctor1, TFunctor2, ReturnType >::myF1, and DGtal::Composer< TFunctor1, TFunctor2, ReturnType >::myF2.
|
private |
Aliasing pointer to the first functor.
Definition at line 262 of file BasicFunctors.h.
Referenced by DGtal::Composer< TFunctor1, TFunctor2, ReturnType >::operator()(), and DGtal::Composer< TFunctor1, TFunctor2, ReturnType >::operator=().
|
private |
Aliasing pointer to the second functor.
Definition at line 266 of file BasicFunctors.h.
Referenced by DGtal::Composer< TFunctor1, TFunctor2, ReturnType >::operator()(), and DGtal::Composer< TFunctor1, TFunctor2, ReturnType >::operator=().
1.8.1.1