![]() |
ROOT 6.08/07 Reference Guide |
Iterator abstract base class.
This base class provides the interface for collection iterators.
Definition at line 32 of file TIterator.h.
Public Member Functions | |
virtual | ~TIterator () |
virtual const TCollection * | GetCollection () const =0 |
virtual Option_t * | GetOption () 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 &) |
Bool_t | operator== (const TIterator &other) const |
virtual void | Reset ()=0 |
Protected Member Functions | |
TIterator () | |
TIterator (const TIterator &) | |
#include <TIterator.h>
|
inlineprotected |
Definition at line 35 of file TIterator.h.
|
inlineprotected |
Definition at line 36 of file TIterator.h.
|
inlinevirtual |
Definition at line 40 of file TIterator.h.
|
pure virtual |
|
inlinevirtual |
Reimplemented in TTreeFriendLeafIter, and TListIter.
Definition at line 42 of file TIterator.h.
|
pure virtual |
Implemented in TTreeFriendLeafIter, TBtreeIter, TListIter, TMapIter, TRefArrayIter, TObjArrayIter, TFileIter, THashTableIter, TListOfFunctionsIter, TViewPubDataMembersIter, TViewPubFunctionsIter, TOrdCollectionIter, TListOfEnumsWithLockIter, RooLinkedListIter, RooMultiCatIter, and RooDataHistSliceIter.
|
virtual |
Compare two iterator objects.
For backward compatibility reasons we have to provide this default implementation.
Reimplemented in TTreeFriendLeafIter, TBtreeIter, TListIter, TMapIter, TRefArrayIter, TObjArrayIter, THashTableIter, TViewPubDataMembersIter, TViewPubFunctionsIter, TOrdCollectionIter, RooLinkedListIter, TFileIter, RooMultiCatIter, and RooDataHistSliceIter.
Definition at line 28 of file TIterator.cxx.
|
inline |
Definition at line 45 of file TIterator.h.
|
virtual |
Return current object or nullptr.
For backward compatibility reasons we have to provide this default implementation.
Reimplemented in TTreeFriendLeafIter, TBtreeIter, TListIter, TMapIter, TRefArrayIter, TObjArrayIter, THashTableIter, TViewPubDataMembersIter, TViewPubFunctionsIter, TOrdCollectionIter, TFileIter, RooLinkedListIter, RooMultiCatIter, and RooDataHistSliceIter.
Definition at line 39 of file TIterator.cxx.
Reimplemented in TTreeFriendLeafIter, TBtreeIter, TListIter, TMapIter, TRefArrayIter, TObjArrayIter, THashTableIter, TViewPubDataMembersIter, TViewPubFunctionsIter, TOrdCollectionIter, RooLinkedListIter, TFileIter, RooDataHistSliceIter, and RooMultiCatIter.
Definition at line 39 of file TIterator.h.
Definition at line 47 of file TIterator.h.
|
pure virtual |