| |||||||||||||||||||||||||||||||
tlp::ConversionIterator< TYPEIN, TYPEOUT, CONVERSIONFUNCTOR > Class Template Reference Iterator that enables to convert an Iterator of type TYPEIN to an Iterator if type TYPEOUT. More...
Inheritance diagram for tlp::ConversionIterator< TYPEIN, TYPEOUT, CONVERSIONFUNCTOR >:
Collaboration diagram for tlp::ConversionIterator< TYPEIN, TYPEOUT, CONVERSIONFUNCTOR >:
Public Member Functions
Detailed Descriptiontemplate<typename TYPEIN, typename TYPEOUT, typename CONVERSIONFUNCTOR>
|
it,the | iterator that should be converted |
convFunctor,the | functor that enable to convert TYPEIN in TYPEOUT |
The functor function shoul have the following form
class AConversionFunctor { TYPEOUT operator()(TYPEIN a) { return a converted in TYPEOUT; } };
tlp::ConversionIterator< TYPEIN, TYPEOUT, CONVERSIONFUNCTOR >::ConversionIterator | ( | Iterator< TYPEIN > * | it, |
CONVERSIONFUNCTOR | convFunctor | ||
) | [inline] |
tlp::ConversionIterator< TYPEIN, TYPEOUT, CONVERSIONFUNCTOR >::~ConversionIterator | ( | ) | [inline] |
bool tlp::ConversionIterator< TYPEIN, TYPEOUT, CONVERSIONFUNCTOR >::hasNext | ( | ) | [inline, virtual] |
Tells if the sequence is at its end.
Implements tlp::Iterator< TYPEOUT >.
TYPEOUT tlp::ConversionIterator< TYPEIN, TYPEOUT, CONVERSIONFUNCTOR >::next | ( | ) | [inline, virtual] |
Moves the Iterator on the next element.
Implements tlp::Iterator< TYPEOUT >.
Tulip Software by LaBRI Visualization Team 2001 - 2012 |