A wrapper around TIterator derivatives.
It is called RooLinkedListIter because all classes assume that the RooAbsCollections use a RooLinkedList, which is not true, any more. The purpose of this wrapper is to act on the outside like a RooLinkedListIter, even though the underlying implementation may work an a different container, like e.g. an STL container. This is needed to not break user code that is using a RooLinkedList or a RooAbsCollection.
Definition at line 204 of file RooLinkedListIter.h.
Public Member Functions | |
RooLinkedListIter (const RooLinkedListIter &)=delete | |
RooLinkedListIter (RooLinkedListIter &&)=default | |
RooLinkedListIter (std::shared_ptr< TIterator > iterImpl) | |
const TCollection * | GetCollection () const override |
TObject * | Next () override |
Bool_t | operator!= (const TIterator &other) const override |
Compare two iterator objects. | |
TObject * | operator* () const override |
Return current object or nullptr. | |
RooLinkedListIter & | operator= (const RooLinkedListIter &)=delete |
TIterator & | operator= (const TIterator &other) override |
RooLinkedListIter & | operator= (RooLinkedListIter &&)=default |
void | Reset () override |
Public Member Functions inherited from TIterator | |
virtual | ~TIterator () |
virtual Option_t * | GetOption () const |
TObject * | operator() () |
Bool_t | operator== (const TIterator &other) const |
Private Attributes | |
std::shared_ptr< TIterator > | fIterImpl |
Additional Inherited Members | |
Protected Member Functions inherited from TIterator | |
TIterator () | |
TIterator (const TIterator &) | |
#include <RooLinkedListIter.h>
|
inline |
Definition at line 207 of file RooLinkedListIter.h.
|
delete |
|
default |
|
inlineoverridevirtual |
Implements TIterator.
Definition at line 218 of file RooLinkedListIter.h.
|
inlineoverridevirtual |
Implements TIterator.
Definition at line 220 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 222 of file RooLinkedListIter.h.
|
inlineoverridevirtual |
Return current object or nullptr.
For backward compatibility reasons we have to provide this default implementation.
Reimplemented from TIterator.
Definition at line 223 of file RooLinkedListIter.h.
|
delete |
Reimplemented from TIterator.
Definition at line 217 of file RooLinkedListIter.h.
|
default |
|
inlineoverridevirtual |
Implements TIterator.
Definition at line 221 of file RooLinkedListIter.h.
|
private |
Definition at line 226 of file RooLinkedListIter.h.