Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtStreamInputIterator.hh
Show All 37 Lines | public: | ||||
typedef Point value_type; | typedef Point value_type; | ||||
typedef ptrdiff_t difference_type; | typedef ptrdiff_t difference_type; | ||||
typedef const Point* pointer; | typedef const Point* pointer; | ||||
typedef const Point& reference; | typedef const Point& reference; | ||||
EvtStreamInputIterator() : _counter( 0 ) {} | EvtStreamInputIterator() : _counter( 0 ) {} | ||||
EvtStreamInputIterator( const EvtStreamInputIterator& other ) : | EvtStreamInputIterator( const EvtStreamInputIterator& other ) : | ||||
_counter( other._counter ? other._counter->clone() : 0 ), | _counter( other._counter ? other._counter->clone() : nullptr ), | ||||
_currentValue( other._currentValue ) | _currentValue( other._currentValue ) | ||||
{ | { | ||||
} | } | ||||
EvtStreamInputIterator( EvtStreamAdapter<Point>& counter ) : | EvtStreamInputIterator( EvtStreamAdapter<Point>& counter ) : | ||||
_counter( counter.clone() ) | _counter( counter.clone() ) | ||||
{ | { | ||||
_currentValue = _counter->currentValue(); | _currentValue = _counter->currentValue(); | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |