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


TObjArrayIter

Iterator of object array.


This class is also known as (typedefs to this class)

TObjArray::Iterator_t

Function Members (Methods)

public:
TObjArrayIter(const TObjArrayIter& iter)
TObjArrayIter(const TObjArray* arr, Bool_t dir = kIterForward)
virtual~TObjArrayIter()
static TClass*Class()
virtual const TCollection*GetCollection() const
virtual Option_t*TIterator::GetOption() const
virtual TClass*IsA() const
virtual TObject*Next()
virtual booloperator!=(const TIterator& aIter) const
booloperator!=(const TObjArrayIter& aIter) const
TObject*TIterator::operator()()
virtual TObject*operator*() const
virtual TIterator&operator=(const TIterator& rhs)
TObjArrayIter&operator=(const TObjArrayIter& rhs)
virtual voidReset()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
TObjArrayIter()

Data Members

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

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TObjArrayIter(const TObjArray* arr, Bool_t dir = kIterForward)
 Create array iterator. By default the iteration direction
 is kIterForward. To go backward use kIterBackward.
TObjArrayIter(const TObjArrayIter& iter)
 Copy ctor.
TIterator & operator=(const TIterator &rhs)
 Overridden assignment operator.
TObjArrayIter & operator=(const TObjArrayIter &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 operator!=(const TIterator &aIter)
 This operator compares two TIterator objects.
bool operator!=(const TObjArrayIter &aIter)
 This operator compares two TObjArrayIter objects.
TObject * operator*()
 Return current object or nullptr.
TObjArrayIter(const TObjArrayIter& iter)
{ }
~TObjArrayIter()
{ }
const TCollection * GetCollection()
{ return fArray; }

Author: Fons Rademakers 11/09/95
Last change: root/cont:$Id: TObjArray.h 23198 2008-04-14 09:23:08Z rdm $
Last generated: 2008-06-25 08:49
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.