Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtStreamInputIterator.hh
Show All 34 Lines | |||||
class EvtStreamInputIterator { | class EvtStreamInputIterator { | ||||
public: | public: | ||||
typedef input_iterator_tag iterator_category; | typedef input_iterator_tag iterator_category; | ||||
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( nullptr ) {} | ||||
EvtStreamInputIterator( const EvtStreamInputIterator& other ) : | EvtStreamInputIterator( const EvtStreamInputIterator& other ) : | ||||
_counter( other._counter ? other._counter->clone() : nullptr ), | _counter( other._counter ? other._counter->clone() : nullptr ), | ||||
_currentValue( other._currentValue ) | _currentValue( other._currentValue ) | ||||
{ | { | ||||
} | } | ||||
EvtStreamInputIterator( EvtStreamAdapter<Point>& counter ) : | EvtStreamInputIterator( EvtStreamAdapter<Point>& counter ) : | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |