82 ValueType&
operator*()
const {
return *
static_cast<ValueType*
>(*m_array); }
158 return !(*
this == rhs);
ValueType & operator*() const
Dereference.
ArrayIterator< ArrayType, ValueType > operator++(int)
Postfix increment.
ValueType * operator->() const
Dereference.
ArrayIterator< ArrayType, ValueType > & operator++()
Prefix increment.
static ValueType & deref_if_needed(ValueType &t)
Dereference if argument is a pointer to ValueType.
bool operator!=(const ArrayIterator< ArrayType, ValueType > &rhs) const
Check inequality.
std::forward_iterator_tag iterator_category
ArrayIterator(const ArrayType *array, int index)
Constructor.
bool operator==(const ArrayIterator< ArrayType, ValueType > &rhs) const
Check equality.
static ValueType & deref_if_needed(ValueType *t)
Dereference if argument is a pointer to ValueType.
std::ptrdiff_t difference_type
ArrayIterator()
Default constructor (not that you can dereference these).
const ParticleList * m_array
ObjArrayIterator()=default
default constructor
ValueType & operator*() const
dereference.
ValueType * operator->() const
dereference.
bool operator!=(const ObjArrayIterator< ArrayType, ValueType > &rhs) const
check inequality.
ObjArrayIterator(ArrayType &array, size_t index)
real constructor
std::forward_iterator_tag iterator_category
bool operator==(const ObjArrayIterator< ArrayType, ValueType > &rhs) const
check equality.
ObjArrayIterator< ArrayType, ValueType > operator++(int)
postfix increment
ObjArrayIterator(ArrayType const *const *array, bool end=false)
Convenience constructor because we usually have a TClonesArray** member so this takes cares of the ch...
std::ptrdiff_t difference_type
ObjArrayIterator(ArrayType const *array, bool end=false)
Convenience constructor in case of a TClonesArray pointer.
ObjArrayIterator< ArrayType, ValueType > & operator++()
prefix increment
Abstract base class for different kinds of events.