Iterator of object array.
Definition at line 116 of file TRefArray.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 | |
TRefArrayIter (const TRefArray *arr, Bool_t dir=kIterForward) | |
Create array iterator. | |
TRefArrayIter (const TRefArrayIter &iter) | |
Copy ctor. | |
~TRefArrayIter () | |
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. | |
Bool_t | operator!= (const TIterator &aIter) const override |
This operator compares two TIterator objects. | |
Bool_t | operator!= (const TRefArrayIter &aIter) const |
This operator compares two TRefArrayIter objects. | |
TObject * | operator* () const override |
Return current object or nullptr. | |
TIterator & | operator= (const TIterator &rhs) override |
Overridden assignment operator. | |
TRefArrayIter & | operator= (const TRefArrayIter &rhs) |
Overloaded assignment operator. | |
void | Reset () override |
Reset array iterator. | |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TIterator | |
virtual | ~TIterator () |
virtual Option_t * | GetOption () const |
TObject * | operator() () |
Bool_t | operator== (const TIterator &other) const |
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 Public Member Functions inherited from TIterator | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
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>
using TRefArrayIter::const_pointer = const TObject ** |
Definition at line 131 of file TRefArray.h.
using TRefArrayIter::difference_type = std::ptrdiff_t |
Definition at line 129 of file TRefArray.h.
using TRefArrayIter::iterator_category = std::bidirectional_iterator_tag |
Definition at line 127 of file TRefArray.h.
using TRefArrayIter::pointer = TObject ** |
Definition at line 130 of file TRefArray.h.
using TRefArrayIter::reference = const TObject *& |
Definition at line 132 of file TRefArray.h.
using TRefArrayIter::value_type = TObject * |
Definition at line 128 of file TRefArray.h.
|
inlineprivate |
Definition at line 124 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 854 of file TRefArray.cxx.
TRefArrayIter::TRefArrayIter | ( | const TRefArrayIter & | iter | ) |
Copy ctor.
Definition at line 864 of file TRefArray.cxx.
|
inline |
Definition at line 136 of file TRefArray.h.
|
static |
|
inlinestaticconstexpr |
Definition at line 147 of file TRefArray.h.
|
inlinestatic |
Definition at line 147 of file TRefArray.h.
|
inlineoverridevirtual |
Implements TIterator.
Definition at line 140 of file TRefArray.h.
|
inlineoverridevirtual |
Reimplemented from TIterator.
Definition at line 147 of file TRefArray.h.
|
overridevirtual |
Return next object in array. Returns 0 when no more objects in array.
Implements TIterator.
Definition at line 904 of file TRefArray.cxx.
This operator compares two TIterator objects.
Reimplemented from TIterator.
Definition at line 944 of file TRefArray.cxx.
Bool_t TRefArrayIter::operator!= | ( | const TRefArrayIter & | aIter | ) | const |
This operator compares two TRefArrayIter objects.
Definition at line 956 of file TRefArray.cxx.
|
overridevirtual |
Return current object or nullptr.
Reimplemented from TIterator.
Definition at line 964 of file TRefArray.cxx.
TRefArrayIter & TRefArrayIter::operator= | ( | const TRefArrayIter & | rhs | ) |
Overloaded assignment operator.
Definition at line 890 of file TRefArray.cxx.
|
overridevirtual |
|
inline |
Definition at line 147 of file TRefArray.h.
|
private |
Definition at line 119 of file TRefArray.h.
|
private |
Definition at line 120 of file TRefArray.h.
|
private |
Definition at line 121 of file TRefArray.h.
|
private |
Definition at line 122 of file TRefArray.h.