1 #ifndef __JLANG__JCONVERSIONITERATOR__
2 #define __JLANG__JCONVERSIONITERATOR__
12 namespace JPP {
using namespace JLANG; }
19 template<
class JInput_t,
class JOutput_t>
56 const JInput_t* p =
in.
next();
59 ps.reset(
new JOutput_t(*p));
JConversionIterator(JObjectIterator< JInput_t > &input)
Constructor.
Interface of object iteration for a single data type.
virtual const pointer_type & next() override
Get next element.
JObjectIterator< JOutput_t >::pointer_type pointer_type
virtual const pointer_type & next()=0
Get next element.
JObjectIterator< JInput_t > & in
Interface for object iteration with type conversion.
virtual bool hasNext()=0
Check availability of next element.
virtual bool hasNext() override
Check availability of next element.