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));
Interface for object iteration with type conversion.
JObjectIterator< JInput_t > & in
virtual bool hasNext() override
Check availability of next element.
JConversionIterator(JObjectIterator< JInput_t > &input)
Constructor.
JObjectIterator< JOutput_t >::pointer_type pointer_type
virtual const pointer_type & next() override
Get next element.
Interface of object iteration for a single data type.
virtual const pointer_type & next()=0
Get next element.
virtual bool hasNext()=0
Check availability of next element.
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).