Iterator of object array.
Definition at line 122 of file TRefArray.h.
Public Member Functions | |
TRefArrayIter (const TRefArray *arr, Bool_t dir=kIterForward) | |
Create array iterator. More... | |
TRefArrayIter (const TRefArrayIter &iter) | |
Copy ctor. More... | |
~TRefArrayIter () | |
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 TRefArrayIter &aIter) const |
This operator compares two TRefArrayIter objects. More... | |
TObject * | operator* () const |
Return current object or nullptr. More... | |
TIterator & | operator= (const TIterator &rhs) |
Overridden assignment operator. More... | |
TRefArrayIter & | operator= (const TRefArrayIter &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 | |
TRefArrayIter () | |
Private Attributes | |
const TRefArray * | fArray |
Int_t | fCurCursor |
Int_t | fCursor |
Bool_t | fDirection |
Additional Inherited Members | |
Protected Member Functions inherited from TIterator | |
TIterator () | |
TIterator (const TIterator &) | |
#include <TRefArray.h>
|
inlineprivate |
Definition at line 133 of file TRefArray.h.
TRefArrayIter::TRefArrayIter | ( | const TRefArray * | arr, |
Bool_t | dir = kIterForward |
||
) |
Create array iterator.
By default the iteration direction is kIterForward. To go backward use kIterBackward.
Definition at line 849 of file TRefArray.cxx.
TRefArrayIter::TRefArrayIter | ( | const TRefArrayIter & | iter | ) |
Copy ctor.
Definition at line 859 of file TRefArray.cxx.
|
inline |
Definition at line 138 of file TRefArray.h.
|
inlinevirtual |
Implements TIterator.
Definition at line 142 of file TRefArray.h.
|
virtual |
Return next object in array. Returns 0 when no more objects in array.
Implements TIterator.
Definition at line 899 of file TRefArray.cxx.
|
virtual |
This operator compares two TIterator objects.
Reimplemented from TIterator.
Definition at line 939 of file TRefArray.cxx.
Bool_t TRefArrayIter::operator!= | ( | const TRefArrayIter & | aIter | ) | const |
This operator compares two TRefArrayIter objects.
Definition at line 951 of file TRefArray.cxx.
|
virtual |
Return current object or nullptr.
Reimplemented from TIterator.
Definition at line 959 of file TRefArray.cxx.
Overridden assignment operator.
Reimplemented from TIterator.
Definition at line 870 of file TRefArray.cxx.
TRefArrayIter & TRefArrayIter::operator= | ( | const TRefArrayIter & | rhs | ) |
Overloaded assignment operator.
Definition at line 885 of file TRefArray.cxx.
|
private |
Definition at line 128 of file TRefArray.h.
|
private |
Definition at line 129 of file TRefArray.h.
|
private |
Definition at line 130 of file TRefArray.h.
|
private |
Definition at line 131 of file TRefArray.h.