ROOT 6.07/09 Reference Guide |
Iterator of ordered collection.
Definition at line 98 of file TOrdCollection.h.
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 |
TObject * | Next () |
Return next object in collection. More... | |
Bool_t | operator!= (const TIterator &aIter) const |
This operator compares two TIterator objects. More... | |
Bool_t | operator!= (const TOrdCollectionIter &aIter) const |
This operator compares two TOrdCollectionIter objects. More... | |
TObject * | operator* () const |
Return current object or nullptr. More... | |
TIterator & | operator= (const TIterator &rhs) |
Overridden assignment operator. More... | |
TOrdCollectionIter & | operator= (const TOrdCollectionIter &rhs) |
Overloaded assignment operator. More... | |
void | Reset () |
Reset collection iterator. More... | |
Public Member Functions inherited from TIterator | |
virtual | ~TIterator () |
virtual Option_t * | GetOption () const |
TObject * | operator() () |
Bool_t | operator== (const TIterator &other) const |
Private Member Functions | |
TOrdCollectionIter () | |
Private Attributes | |
const TOrdCollection * | fCol |
Int_t | fCurCursor |
Int_t | fCursor |
Bool_t | fDirection |
Additional Inherited Members | |
Protected Member Functions inherited from TIterator | |
TIterator () | |
TIterator (const TIterator &) | |
#include <TOrdCollection.h>
|
inlineprivate |
Definition at line 109 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 114 of file TOrdCollection.h.
|
inlinevirtual |
Implements TIterator.
Definition at line 118 of file TOrdCollection.h.
|
virtual |
Return next object in collection.
Returns 0 when no more objects in collection.
Implements TIterator.
Definition at line 502 of file TOrdCollection.cxx.
|
virtual |
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.
|
virtual |
Return current object or nullptr.
Reimplemented from TIterator.
Definition at line 551 of file TOrdCollection.cxx.
Overridden assignment operator.
Reimplemented from 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.
|
private |
Definition at line 104 of file TOrdCollection.h.
|
private |
Definition at line 105 of file TOrdCollection.h.
|
private |
Definition at line 106 of file TOrdCollection.h.
|
private |
Definition at line 107 of file TOrdCollection.h.