20 #ifndef CONVERSIONITERATOR_H
21 #define CONVERSIONITERATOR_H
23 #include <tulip/Iterator.h>
24 #include <tulip/StlIterator.h>
25 #include <tulip/memorypool.h>
44 template <
typename TYPEIN,
typename TYPEOUT,
typename ConversionFunc>
48 : _it(it), _convFunctor(convFunctor) {}
56 return _convFunctor(_it->
next());
61 ConversionFunc _convFunctor;
70 template <
typename TIN,
typename TOUT,
typename ConversionFunc>
72 public MemoryPool<MPConversionIterator<TIN, TOUT, ConversionFunc>> {
93 template <
typename TOUT,
typename ConversionFunc,
typename TIN>
95 ConversionFunc convFunc) {
115 template <
typename TOUT,
typename ConversionFunc,
typename Container>
116 typename std::enable_if<has_const_iterator<Container>::value,
117 ConversionIterator<typename Container::value_type, TOUT, ConversionFunc>
119 ConversionFunc convFunc) {
124 #endif // CONVERSIONITERATOR_H