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. | |
TObjArrayIter (const TObjArrayIter &iter) | |
Copy ctor. | |
~TObjArrayIter () | |
const TCollection * | GetCollection () const |
TObject * | Next () |
Return next object in array. Returns 0 when no more objects in array. | |
Bool_t | operator!= (const TIterator &aIter) const |
This operator compares two TIterator objects. | |
Bool_t | operator!= (const TObjArrayIter &aIter) const |
This operator compares two TObjArrayIter objects. | |
TObject * | operator* () const |
Return current object or nullptr. | |
TIterator & | operator= (const TIterator &rhs) |
Overridden assignment operator. | |
TObjArrayIter & | operator= (const TObjArrayIter &rhs) |
Overloaded assignment operator. | |
void | Reset () |
Reset array iterator. | |
![]() | |
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. | |
TObject * | operator() () |
virtual TObject * | operator* () const |
Return current object or nullptr. | |
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 | |
![]() | |
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 881 of file TObjArray.cxx.
TObjArrayIter::TObjArrayIter | ( | const TObjArrayIter & | iter | ) |
Copy ctor.
Definition at line 891 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 931 of file TObjArray.cxx.
This operator compares two TIterator objects.
Reimplemented from TIterator.
Definition at line 969 of file TObjArray.cxx.
Bool_t TObjArrayIter::operator!= | ( | const TObjArrayIter & | aIter | ) | const |
This operator compares two TObjArrayIter objects.
Definition at line 981 of file TObjArray.cxx.
|
virtual |
Return current object or nullptr.
Reimplemented from TIterator.
Definition at line 989 of file TObjArray.cxx.
Overridden assignment operator.
Reimplemented from TIterator.
Definition at line 902 of file TObjArray.cxx.
TObjArrayIter & TObjArrayIter::operator= | ( | const TObjArrayIter & | rhs | ) |
Overloaded assignment operator.
Definition at line 917 of file TObjArray.cxx.
|
virtual |
|
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.