1 #ifndef __JLANG__JOBJECTSAMPLER__
2 #define __JLANG__JOBJECTSAMPLER__
14 namespace JPP {
using namespace JLANG; }
29 template<
class T,
template<
class>
class JSampler_t =
JSampler>
88 while ((ns -=
in.skip(ns)) != 0) {
virtual const pointer_type & next()
Get next element.
Template class for sampling from a JRewindableObjectIterator.
JObjectSampler(JRewindableObjectIterator< T > &input)
Constructor.
Interface for object iteration with rewinding.
unsigned int skip_type
Type definition for number of objects to skip.
JRewindableObjectIterator< T > & in
Interface of object iteration for a single data type.
JObjectSampler(JRewindableObjectIterator< T > &input, const JSampler_t< T > &sampler)
Constructor.
JSampler_t< T > & getSampler()
Get sampler.
virtual void reset()
Reset pointer.
JObjectIterator< T >::pointer_type pointer_type
Auxiliary class to sample objects from a rewindable object iterator.
virtual bool hasNext()
Check availability of next element.
const JSampler_t< T > & getSampler() const
Get sampler.
virtual void set(JClass_t *p)
Set pointer.