tlp::ConversionIterator< TYPEIN, TYPEOUT, CONVERSIONFUNCTOR > Class Template Reference
[Iterator]
Iterator that enables to convert an Iterator of type TYPEIN to an Iterator if type TYPEOUT.
More...
#include <conversioniterator.h>
List of all members.
Public Member Functions
Detailed Description
template<typename TYPEIN, typename TYPEOUT, typename CONVERSIONFUNCTOR>
class tlp::ConversionIterator< TYPEIN, TYPEOUT, CONVERSIONFUNCTOR >
Iterator that enables to convert an Iterator of type TYPEIN to an Iterator if type TYPEOUT.
- Parameters:
-
| 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;
}
};
Constructor & Destructor Documentation
template<typename TYPEIN , typename TYPEOUT , typename CONVERSIONFUNCTOR >
template<typename TYPEIN , typename TYPEOUT , typename CONVERSIONFUNCTOR >
Member Function Documentation
template<typename TYPEIN , typename TYPEOUT , typename CONVERSIONFUNCTOR >
Tells if the sequence is at its end.
- Returns:
- bool Whether there are more elements to iterate on.
Implements tlp::Iterator< TYPEOUT >.
template<typename TYPEIN , typename TYPEOUT , typename CONVERSIONFUNCTOR >