Iterator of object array.
Definition at line 117 of file TObjArray.h.
Public Types | |
using | const_pointer = const TObject ** |
using | difference_type = std::ptrdiff_t |
using | iterator_category = std::bidirectional_iterator_tag |
using | pointer = TObject ** |
using | reference = const TObject *& |
using | value_type = TObject * |
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 override |
TClass * | IsA () const override |
TObject * | Next () override |
Return next object in array. Returns 0 when no more objects in array. More... | |
Bool_t | operator!= (const TIterator &aIter) const override |
This operator compares two TIterator objects. More... | |
Bool_t | operator!= (const TObjArrayIter &aIter) const |
This operator compares two TObjArrayIter objects. More... | |
TObject * | operator* () const override |
Return current object or nullptr. More... | |
TIterator & | operator= (const TIterator &rhs) override |
Overridden assignment operator. More... | |
TObjArrayIter & | operator= (const TObjArrayIter &rhs) |
Overloaded assignment operator. More... | |
void | Reset () override |
Reset array iterator. More... | |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
![]() | |
virtual | ~TIterator () |
virtual const TCollection * | GetCollection () const =0 |
virtual Option_t * | GetOption () const |
virtual TClass * | IsA () 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 &)=0 |
Bool_t | operator== (const TIterator &other) const |
virtual void | Reset ()=0 |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
![]() | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
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>
using TObjArrayIter::const_pointer = const TObject ** |
Definition at line 132 of file TObjArray.h.
using TObjArrayIter::difference_type = std::ptrdiff_t |
Definition at line 130 of file TObjArray.h.
using TObjArrayIter::iterator_category = std::bidirectional_iterator_tag |
Definition at line 128 of file TObjArray.h.
using TObjArrayIter::pointer = TObject ** |
Definition at line 131 of file TObjArray.h.
using TObjArrayIter::reference = const TObject *& |
Definition at line 133 of file TObjArray.h.
using TObjArrayIter::value_type = TObject * |
Definition at line 129 of file TObjArray.h.
|
inlineprivate |
Definition at line 125 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 137 of file TObjArray.h.
|
static |
|
inlinestaticconstexpr |
Definition at line 148 of file TObjArray.h.
|
inlinestatic |
Definition at line 148 of file TObjArray.h.
|
inlineoverridevirtual |
Implements TIterator.
Definition at line 141 of file TObjArray.h.
|
inlineoverridevirtual |
Reimplemented from TIterator.
Definition at line 148 of file TObjArray.h.
|
overridevirtual |
Return next object in array. Returns 0 when no more objects in array.
Implements TIterator.
Definition at line 931 of file TObjArray.cxx.
|
overridevirtual |
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.
|
overridevirtual |
Return current object or nullptr.
Reimplemented from TIterator.
Definition at line 989 of file TObjArray.cxx.
TObjArrayIter & TObjArrayIter::operator= | ( | const TObjArrayIter & | rhs | ) |
Overloaded assignment operator.
Definition at line 917 of file TObjArray.cxx.
|
overridevirtual |
|
inline |
Definition at line 148 of file TObjArray.h.
|
private |
Definition at line 120 of file TObjArray.h.
|
private |
Definition at line 121 of file TObjArray.h.
|
private |
Definition at line 122 of file TObjArray.h.
|
private |
Definition at line 123 of file TObjArray.h.