ROOT 6.12/07 Reference Guide |
Public Member Functions | |
TListIter (const TList *l, Bool_t dir=kIterForward) | |
Create a new list iterator. More... | |
TListIter (const TListIter &iter) | |
Copy ctor. More... | |
~TListIter () | |
const TCollection * | GetCollection () const |
Option_t * | GetOption () const |
Returns the object option stored in the list. More... | |
TObject * | Next () |
Return next object in the list. Returns 0 when no more objects in list. More... | |
Bool_t | operator!= (const TIterator &aIter) const |
This operator compares two TIterator objects. More... | |
Bool_t | operator!= (const TListIter &aIter) const |
This operator compares two TListIter objects. More... | |
TObject * | operator* () const |
Return current object or nullptr. More... | |
TIterator & | operator= (const TIterator &rhs) |
Overridden assignment operator. More... | |
TListIter & | operator= (const TListIter &rhs) |
Overloaded assignment operator. More... | |
void | Reset () |
Reset list iterator. More... | |
void | SetOption (Option_t *option) |
Sets the object option stored in the list. More... | |
Public Member Functions inherited from TIterator | |
virtual | ~TIterator () |
TObject * | operator() () |
Bool_t | operator== (const TIterator &other) const |
Protected Types | |
using | TObjLinkPtr_t = std::shared_ptr< TObjLink > |
Protected Member Functions | |
TListIter () | |
Protected Member Functions inherited from TIterator | |
TIterator () | |
TIterator (const TIterator &) | |
Protected Attributes | |
TObjLinkPtr_t | fCurCursor |
TObjLinkPtr_t | fCursor |
Bool_t | fDirection |
const TList * | fList |
Bool_t | fStarted |
#include <TList.h>
|
protected |
TListIter::TListIter | ( | const TList * | l, |
Bool_t | dir = kIterForward |
||
) |
TListIter::TListIter | ( | const TListIter & | iter | ) |
|
inlinevirtual |
|
virtual |
|
virtual |
Return next object in the list. Returns 0 when no more objects in list.
Implements TIterator.
Reimplemented in TFileIter, TListOfFunctionsIter, and TListOfEnumsWithLockIter.
|
virtual |
Bool_t TListIter::operator!= | ( | const TListIter & | aIter | ) | const |
|
inlinevirtual |
|
protected |
|
protected |