16#ifndef ROO_LINKED_LIST_ITER 
   17#define ROO_LINKED_LIST_ITER 
   67    if (!
fPtr) 
return nullptr ;
 
   97template<
class STLContainer>
 
  147    const auto * castedOther =
 
  149    return !castedOther || &
fSTLContainer != &(castedOther->fSTLContainer)
 
  150        || 
fIndex == castedOther->fIndex;
 
  175      throw std::logic_error(
"A RooCollection should not be modified while iterating. " 
  176          "Only inserting at end is acceptable.");
 
  259    if (&other==
this) 
return *this ;
 
  276    if (!
_ptr) 
return 0 ;
 
  284    if (!
_ptr) 
return 0 ;
 
  298    if (iter) 
return (
_ptr != iter->
_ptr);
 
Interface for RooFIter-compatible iterators.
 
virtual ~GenericRooFIter()
 
virtual RooAbsArg * next()=0
Return next element or nullptr if at end.
 
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
 
Implementation of the GenericRooFIter interface for the RooLinkedList.
 
RooAbsArg * next() override
Return next element in collection.
 
RooFIterForLinkedList(const RooLinkedList *list)
 
const RooLinkedListElem * fPtr
 
A one-time forward iterator working on RooLinkedList or RooAbsCollection.
 
RooFIter(RooFIter &&)=default
 
RooFIter(const RooFIter &)=delete
 
RooAbsArg * next()
Return next element or nullptr if at end.
 
RooFIter & operator=(const RooFIter &)=delete
 
std::unique_ptr< GenericRooFIter > fIterImpl
 
RooFIter(std::unique_ptr< GenericRooFIter > &&itImpl)
 
RooFIter & operator=(RooFIter &&)=default
 
RooLinkedListElem is an link element for the RooLinkedList class.
 
RooLinkedListElem * _prev
 
RooLinkedListElem * _next
 
Implementation of the actual iterator on RooLinkedLists.
 
virtual TObject * operator*() const
Return current object or nullptr.
 
TIterator & operator=(const TIterator &other)
 
bool operator!=(const RooLinkedListIterImpl &aIter) const
 
const RooLinkedList * _list
 
virtual const TCollection * GetCollection() const
 
virtual ~RooLinkedListIterImpl()
 
Bool_t _forward
Next link element.
 
RooLinkedListIterImpl(const RooLinkedListIterImpl &other)
 
bool operator!=(const TIterator &aIter) const
Compare two iterator objects.
 
RooLinkedListIterImpl(const RooLinkedList *list, Bool_t forward)
 
const RooLinkedListElem * _ptr
Collection iterated over.
 
A wrapper around TIterator derivatives.
 
RooLinkedListIter(std::shared_ptr< TIterator > iterImpl)
 
RooLinkedListIter & operator=(RooLinkedListIter &&)=default
 
const TCollection * GetCollection() const override
 
RooLinkedListIter(RooLinkedListIter &&)=default
 
RooLinkedListIter(const RooLinkedListIter &)=delete
 
Bool_t operator!=(const TIterator &other) const override
Compare two iterator objects.
 
TObject * Next() override
 
TObject * operator*() const override
Return current object or nullptr.
 
RooLinkedListIter & operator=(const RooLinkedListIter &)=delete
 
TIterator & operator=(const TIterator &other) override
 
std::shared_ptr< TIterator > fIterImpl
 
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
 
RooLinkedListElem * _last
Link to first element of list.
 
RooLinkedListElem * _first
 
Collection abstract base class.
 
TIterator and GenericRooFIter front end with STL back end.
 
TObject * Next() override
 
RooAbsArg * next() override
Return next element or nullptr if at end.
 
const RooAbsArg * fCurrentElem
 
TIterator & operator=(const TIterator &) override
 
Bool_t operator!=(const TIterator &other) const override
Compare two iterator objects.
 
TIteratorToSTLInterface(const STLContainer &container)
 
RooAbsArg * nextChecked()
 
TObject * operator*() const override
Return current object or nullptr.
 
const TCollection * GetCollection() const override
 
const STLContainer & fSTLContainer
 
Iterator abstract base class.
 
Mother of all ROOT objects.
 
void forward(const LAYERDATA &prevLayerData, LAYERDATA &currLayerData)
apply the weights (and functions) in forward direction of the DNN