|
DGtal 2.0.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. | |
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 |
Default constructor
Definition at line 426 of file BasicFunctors.h.
|
inline |
|
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.
|
inline |
|
private |
Aliasing pointer to the first functor.
Definition at line 479 of file BasicFunctors.h.
Referenced by DGtal::functors::Composer< Embedder, MetricToPoint, Value >::operator=().
|
private |
Aliasing pointer to the second functor.
Definition at line 483 of file BasicFunctors.h.
Referenced by DGtal::functors::Composer< Embedder, MetricToPoint, Value >::operator=().