ROOT 6.12/07 Reference Guide |
Iterator of object array.
Definition at line 122 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 Option_t * | GetOption () const |
TObject * | operator() () |
Bool_t | operator== (const TIterator &other) const |
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 133 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 865 of file TObjArray.cxx.
TObjArrayIter::TObjArrayIter | ( | const TObjArrayIter & | iter | ) |
Copy ctor.
Definition at line 875 of file TObjArray.cxx.
|
inline |
Definition at line 138 of file TObjArray.h.
|
inlinevirtual |
Implements TIterator.
Definition at line 142 of file TObjArray.h.
|
virtual |
Return next object in array. Returns 0 when no more objects in array.
Implements TIterator.
Definition at line 915 of file TObjArray.cxx.
|
virtual |
This operator compares two TIterator objects.
Reimplemented from TIterator.
Definition at line 953 of file TObjArray.cxx.
Bool_t TObjArrayIter::operator!= | ( | const TObjArrayIter & | aIter | ) | const |
This operator compares two TObjArrayIter objects.
Definition at line 965 of file TObjArray.cxx.
|
virtual |
Return current object or nullptr.
Reimplemented from TIterator.
Definition at line 973 of file TObjArray.cxx.
Overridden assignment operator.
Reimplemented from TIterator.
Definition at line 886 of file TObjArray.cxx.
TObjArrayIter & TObjArrayIter::operator= | ( | const TObjArrayIter & | rhs | ) |
Overloaded assignment operator.
Definition at line 901 of file TObjArray.cxx.
|
private |
Definition at line 128 of file TObjArray.h.
|
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.