ROOT » CORE » CONT » TRefArrayIter

class TRefArrayIter: public TIterator, public iterator<bidirectional_iterator_tag,TObject*,long,const TObject**,const TObject*&>


TRefArrayIter

Iterator of object array.


Function Members (Methods)

public:
virtual~TRefArrayIter()
static TClass*Class()
virtual const TCollection*GetCollection() const
virtual Option_t*TIterator::GetOption() const
virtual TClass*IsA() const
virtual TObject*Next()
virtual Bool_toperator!=(const TIterator& aIter) const
Bool_toperator!=(const TRefArrayIter& aIter) const
TObject*TIterator::operator()()
virtual TObject*operator*() const
virtual TIterator&operator=(const TIterator& rhs)
TRefArrayIter&operator=(const TRefArrayIter& rhs)
Bool_tTIterator::operator==(const TIterator& other) const
virtual voidReset()
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TRefArrayIter(const TRefArrayIter& iter)
TRefArrayIter(const TRefArray* arr, Bool_t dir = kIterForward)
private:
TRefArrayIter()

Data Members

private:
const TRefArray*fArrayarray being iterated
Int_tfCurCursorcurrent position in array
Int_tfCursornext position in array
Bool_tfDirectioniteration direction

Class Charts

Inheritance Chart:
TIterator
iterator
TRefArrayIter

Function documentation

TRefArrayIter(const TRefArray* arr, Bool_t dir = kIterForward)
 Create array iterator. By default the iteration direction
 is kIterForward. To go backward use kIterBackward.
TRefArrayIter(const TRefArrayIter& iter)
 Copy ctor.
TIterator & operator=(const TIterator& rhs)
 Overridden assignment operator.
TRefArrayIter & operator=(const TRefArrayIter& rhs)
 Overloaded assignment operator.
TObject * Next()
 Return next object in array. Returns 0 when no more objects in array.
void Reset()
 Reset array iterator.
Bool_t operator!=(const TIterator& aIter) const
 This operator compares two TIterator objects.
Bool_t operator!=(const TRefArrayIter& aIter) const
 This operator compares two TRefArrayIter objects.
TObject * operator*() const
 Return current object or nullptr.
TRefArrayIter()
{ }
~TRefArrayIter()
{ }
const TCollection * GetCollection() const
{ return fArray; }