Iterator of ordered collection.
Definition at line 96 of file TOrdCollection.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 | |
TOrdCollectionIter (const TOrdCollection *col, Bool_t dir=kIterForward) | |
Create collection iterator. More... | |
TOrdCollectionIter (const TOrdCollectionIter &iter) | |
Copy ctor. More... | |
~TOrdCollectionIter () | |
const TCollection * | GetCollection () const override |
TClass * | IsA () const override |
TObject * | Next () override |
Return next object in collection. More... | |
Bool_t | operator!= (const TIterator &aIter) const override |
This operator compares two TIterator objects. More... | |
Bool_t | operator!= (const TOrdCollectionIter &aIter) const |
This operator compares two TOrdCollectionIter objects. More... | |
TObject * | operator* () const override |
Return current object or nullptr. More... | |
TIterator & | operator= (const TIterator &rhs) override |
Overridden assignment operator. More... | |
TOrdCollectionIter & | operator= (const TOrdCollectionIter &rhs) |
Overloaded assignment operator. More... | |
void | Reset () override |
Reset collection 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 Version_t | Class_Version () |
static const char * | DeclFileName () |
![]() | |
static TClass * | Class () |
static const char * | Class_Name () |
static Version_t | Class_Version () |
static const char * | DeclFileName () |
Private Member Functions | |
TOrdCollectionIter () | |
Private Attributes | |
const TOrdCollection * | fCol |
Int_t | fCurCursor |
Int_t | fCursor |
Bool_t | fDirection |
Additional Inherited Members | |
![]() | |
TIterator () | |
TIterator (const TIterator &) | |
#include <TOrdCollection.h>
using TOrdCollectionIter::const_pointer = const TObject ** |
Definition at line 111 of file TOrdCollection.h.
using TOrdCollectionIter::difference_type = std::ptrdiff_t |
Definition at line 109 of file TOrdCollection.h.
using TOrdCollectionIter::iterator_category = std::bidirectional_iterator_tag |
Definition at line 107 of file TOrdCollection.h.
using TOrdCollectionIter::pointer = TObject ** |
Definition at line 110 of file TOrdCollection.h.
using TOrdCollectionIter::reference = const TObject *& |
Definition at line 112 of file TOrdCollection.h.
using TOrdCollectionIter::value_type = TObject * |
Definition at line 108 of file TOrdCollection.h.
|
inlineprivate |
Definition at line 104 of file TOrdCollection.h.
TOrdCollectionIter::TOrdCollectionIter | ( | const TOrdCollection * | col, |
Bool_t | dir = kIterForward |
||
) |
Create collection iterator.
By default the iteration direction is kIterForward. To go backward use kIterBackward.
Definition at line 453 of file TOrdCollection.cxx.
TOrdCollectionIter::TOrdCollectionIter | ( | const TOrdCollectionIter & | iter | ) |
Copy ctor.
Definition at line 461 of file TOrdCollection.cxx.
|
inline |
Definition at line 116 of file TOrdCollection.h.
|
static |
|
inlinestatic |
Definition at line 127 of file TOrdCollection.h.
|
inlinestatic |
Definition at line 127 of file TOrdCollection.h.
|
inlineoverridevirtual |
Implements TIterator.
Definition at line 120 of file TOrdCollection.h.
|
inlineoverridevirtual |
Reimplemented from TIterator.
Definition at line 127 of file TOrdCollection.h.
|
overridevirtual |
Return next object in collection.
Returns 0 when no more objects in collection.
Implements TIterator.
Definition at line 502 of file TOrdCollection.cxx.
|
overridevirtual |
This operator compares two TIterator objects.
Reimplemented from TIterator.
Definition at line 531 of file TOrdCollection.cxx.
Bool_t TOrdCollectionIter::operator!= | ( | const TOrdCollectionIter & | aIter | ) | const |
This operator compares two TOrdCollectionIter objects.
Definition at line 543 of file TOrdCollection.cxx.
|
overridevirtual |
Return current object or nullptr.
Reimplemented from TIterator.
Definition at line 551 of file TOrdCollection.cxx.
Overridden assignment operator.
Implements TIterator.
Definition at line 472 of file TOrdCollection.cxx.
TOrdCollectionIter & TOrdCollectionIter::operator= | ( | const TOrdCollectionIter & | rhs | ) |
Overloaded assignment operator.
Definition at line 487 of file TOrdCollection.cxx.
|
overridevirtual |
|
inline |
Definition at line 127 of file TOrdCollection.h.
|
private |
Definition at line 99 of file TOrdCollection.h.
|
private |
Definition at line 100 of file TOrdCollection.h.
|
private |
Definition at line 101 of file TOrdCollection.h.
|
private |
Definition at line 102 of file TOrdCollection.h.