15#ifndef EVT_STREAM_ADAPTER_HH
16#define EVT_STREAM_ADAPTER_HH
34template <
class Po
int,
class Generator>
38 : _gen(gen), _count(
count)
49 virtual bool pastEnd() {
return (_count <= 0); }
60template <
class Po
int,
class Iterator,
class Predicate>
64 : _pred(pred), _it(it), _end(end)
78 if(_pred(value))
break;
84 virtual bool pastEnd() {
return _it == _end; }
DOUBLE_PRECISION count[3]
virtual ~EvtGenStreamAdapter()
EvtGenStreamAdapter(Generator gen, int count)
virtual EvtStreamAdapter< Point > * clone() const
virtual Point currentValue()
virtual ~EvtPredStreamAdapter()
virtual Point currentValue()
virtual EvtStreamAdapter< Point > * clone() const
EvtPredStreamAdapter(Predicate pred, Iterator it, Iterator end)
virtual ~EvtStreamAdapter()
virtual EvtStreamAdapter * clone() const =0
virtual Point currentValue()=0