Implementation of the actual iterator on RooLinkedLists.
It holds an index, so elements can be appended while iterating. Next() continues with the element that followed the one it returned last, also if elements were removed in the meantime. In range-based for loops, removing the current or an earlier element skips the next one.
Definition at line 243 of file RooLinkedListIter.h.
Public Member Functions | |
| RooLinkedListIterImpl (const RooLinkedList *list, bool forward) | |
| RooLinkedListIterImpl (const RooLinkedList *list, Int_t index, bool forward) | |
| const TCollection * | GetCollection () const override |
| virtual Option_t * | GetOption () const |
| virtual TClass * | IsA () const |
| TObject * | Next () override |
| TObject * | NextNV () |
| bool | operator!= (const RooLinkedListIterImpl &aIter) const |
| bool | operator!= (const TIterator &aIter) const override |
| Compare two iterator objects. | |
| TObject * | operator() () |
| TObject * | operator* () const override |
| Return current object or nullptr. | |
| RooLinkedListIterImpl & | operator++ () |
| RooLinkedListIterImpl | operator++ (int) |
| TIterator & | operator= (const TIterator &other) override |
| Bool_t | operator== (const TIterator &other) const |
| void | Reset () override |
| virtual void | Streamer (TBuffer &) |
| 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 () |
Protected Member Functions | |
| bool | atEnd () const |
Protected Attributes | |
| bool | _forward |
| ! Iterator direction | |
| Int_t | _index |
| ! Index of the current element | |
| const RooLinkedList * | _list |
| ! Collection iterated over | |
| TObject * | _next = nullptr |
| ! Element that NextNV() returns next | |
#include <RooLinkedListIter.h>
|
inline |
Definition at line 246 of file RooLinkedListIter.h.
|
inline |
Definition at line 249 of file RooLinkedListIter.h.
|
inlineprotected |
Definition at line 323 of file RooLinkedListIter.h.
|
staticinherited |
|
inlinestaticconstexprinherited |
Definition at line 48 of file TIterator.h.
|
inlinestaticinherited |
Definition at line 48 of file TIterator.h.
|
inlineoverridevirtual |
Implements TIterator.
Definition at line 267 of file RooLinkedListIter.h.
|
inlinevirtualinherited |
Reimplemented in TListIter, and TTreeFriendLeafIter.
Definition at line 40 of file TIterator.h.
|
inlinevirtualinherited |
Reimplemented in TBtreeIter, THashTableIter, TListIter, TMapIter, TObjArrayIter, TOrdCollectionIter, TRefArrayIter, TListOfEnumsWithLockIter, TListOfFunctionsIter, RooDataHistSliceIter, and TTreeFriendLeafIter.
Definition at line 48 of file TIterator.h.
|
inlineoverridevirtual |
Implements TIterator.
Definition at line 272 of file RooLinkedListIter.h.
|
inline |
Definition at line 277 of file RooLinkedListIter.h.
|
inline |
Definition at line 302 of file RooLinkedListIter.h.
Compare two iterator objects.
For backward compatibility reasons we have to provide this default implementation.
Reimplemented from TIterator.
Definition at line 296 of file RooLinkedListIter.h.
|
inlineinherited |
Definition at line 43 of file TIterator.h.
|
inlineoverridevirtual |
Return current object or nullptr.
For backward compatibility reasons we have to provide this default implementation.
Reimplemented from TIterator.
Definition at line 306 of file RooLinkedListIter.h.
|
inline |
Definition at line 311 of file RooLinkedListIter.h.
|
inline |
Definition at line 316 of file RooLinkedListIter.h.
Implements TIterator.
Definition at line 252 of file RooLinkedListIter.h.
Definition at line 45 of file TIterator.h.
|
inlineoverridevirtual |
Implements TIterator.
Definition at line 290 of file RooLinkedListIter.h.
|
virtualinherited |
Reimplemented in TBtreeIter, THashTableIter, TListIter, TMapIter, TObjArrayIter, TOrdCollectionIter, TRefArrayIter, TListOfEnumsWithLockIter, TListOfFunctionsIter, RooDataHistSliceIter, and TTreeFriendLeafIter.
|
inlineinherited |
Definition at line 48 of file TIterator.h.
|
protected |
! Iterator direction
Definition at line 328 of file RooLinkedListIter.h.
|
protected |
! Index of the current element
Definition at line 326 of file RooLinkedListIter.h.
|
protected |
! Collection iterated over
Definition at line 325 of file RooLinkedListIter.h.
|
protected |
! Element that NextNV() returns next
Definition at line 327 of file RooLinkedListIter.h.