Iterator of object array.
Definition at line 123 of file TObjArray.h.
Public Member Functions | |
TObjArrayIter (const TObjArray *arr, Bool_t dir=kIterForward) | |
Create array iterator. More... | |
TObjArrayIter (const TObjArrayIter &iter) | |
Copy ctor. More... | |
~TObjArrayIter () | |
const TCollection * | GetCollection () const |
TObject * | Next () |
Return next object in array. Returns 0 when no more objects in array. More... | |
Bool_t | operator!= (const TIterator &aIter) const |
This operator compares two TIterator objects. More... | |
Bool_t | operator!= (const TObjArrayIter &aIter) const |
This operator compares two TObjArrayIter objects. More... | |
TObject * | operator* () const |
Return current object or nullptr. More... | |
TIterator & | operator= (const TIterator &rhs) |
Overridden assignment operator. More... | |
TObjArrayIter & | operator= (const TObjArrayIter &rhs) |
Overloaded assignment operator. More... | |
void | Reset () |
Reset array iterator. More... | |
Public Member Functions inherited from TIterator | |
virtual | ~TIterator () |
virtual const TCollection * | GetCollection () const =0 |
virtual Option_t * | GetOption () const |
virtual TObject * | Next ()=0 |
virtual Bool_t | operator!= (const TIterator &) const |
Compare two iterator objects. More... | |
TObject * | operator() () |
virtual TObject * | operator* () const |
Return current object or nullptr. More... | |
virtual TIterator & | operator= (const TIterator &) |
Bool_t | operator== (const TIterator &other) const |
virtual void | Reset ()=0 |
Private Member Functions | |
TObjArrayIter () | |
Private Attributes | |
const TObjArray * | fArray |
Int_t | fCurCursor |
Int_t | fCursor |
Bool_t | fDirection |
Additional Inherited Members | |
Protected Member Functions inherited from TIterator | |
TIterator () | |
TIterator (const TIterator &) | |
#include <TObjArray.h>
|
inlineprivate |
Definition at line 134 of file TObjArray.h.
TObjArrayIter::TObjArrayIter | ( | const TObjArray * | arr, |
Bool_t | dir = kIterForward |
||
) |
Create array iterator.
By default the iteration direction is kIterForward. To go backward use kIterBackward.
Definition at line 880 of file TObjArray.cxx.
TObjArrayIter::TObjArrayIter | ( | const TObjArrayIter & | iter | ) |
Copy ctor.
Definition at line 890 of file TObjArray.cxx.
|
inline |
Definition at line 139 of file TObjArray.h.
|
inlinevirtual |
Implements TIterator.
Definition at line 143 of file TObjArray.h.
|
virtual |
Return next object in array. Returns 0 when no more objects in array.
Implements TIterator.
Definition at line 930 of file TObjArray.cxx.
|
virtual |
This operator compares two TIterator objects.
Reimplemented from TIterator.
Definition at line 968 of file TObjArray.cxx.
Bool_t TObjArrayIter::operator!= | ( | const TObjArrayIter & | aIter | ) | const |
This operator compares two TObjArrayIter objects.
Definition at line 980 of file TObjArray.cxx.
|
virtual |
Return current object or nullptr.
Reimplemented from TIterator.
Definition at line 988 of file TObjArray.cxx.
Overridden assignment operator.
Reimplemented from TIterator.
Definition at line 901 of file TObjArray.cxx.
TObjArrayIter & TObjArrayIter::operator= | ( | const TObjArrayIter & | rhs | ) |
Overloaded assignment operator.
Definition at line 916 of file TObjArray.cxx.
|
private |
Definition at line 129 of file TObjArray.h.
|
private |
Definition at line 130 of file TObjArray.h.
|
private |
Definition at line 131 of file TObjArray.h.
|
private |
Definition at line 132 of file TObjArray.h.