31 #if (__GNUC__ >= 3) && !defined(__INTEL_COMPILER) 34 #pragma GCC system_header 127 class TObjLink :
public std::enable_shared_from_this<TObjLink> {
185 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600 186 #pragma GCC diagnostic push 187 #pragma GCC diagnostic ignored "-Weffc++" 198 public std::iterator<std::bidirectional_iterator_tag,
199 TObject*, std::ptrdiff_t,
200 const TObject**, const TObject*&> {
242 return NewLink(obj, prev ? prev->shared_from_this() :
nullptr);
245 return NewOptLink(obj, opt, prev ? prev->shared_from_this() :
nullptr);
249 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600 250 #pragma GCC diagnostic pop std::weak_ptr< TObjLink > TObjLinkWeakPtr_t
virtual void AddAt(TObject *obj, Int_t idx)
Insert object at position idx in the list.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
void InsertAfter(const TObjLinkPtr_t &newlink, const TObjLinkPtr_t &prev)
Insert a new link in the chain.
virtual void RemoveLast()
Remove the last object of the list.
TObjLink * LinkAt(Int_t idx) const
sorting order (when calling Sort() or for TSortedList)
virtual TObject * Last() const
Return the last object in the list. Returns 0 when list is empty.
virtual void AddFirst(TObject *obj)
Add object at the beginning of the list.
Option_t * GetOption() const
TObject * Remove(const TObjLinkPtr_t &lnk)
TObject ** GetObjectRef()
Iterator abstract base class.
virtual void AddLast(TObject *obj)
Add object at the end of the list.
TObjLinkWeakPtr_t fCache
pointer to last entry in linked list
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
TList & operator=(const TList &)
virtual void Sort(Bool_t order=kSortAscending)
Sort linked list.
Bool_t LnkCompare(const TObjLinkPtr_t &l1, const TObjLinkPtr_t &l2)
Compares the objects stored in the TObjLink objects.
virtual void SetOption(Option_t *)
Sequenceable collection abstract base class.
#define ClassDef(name, id)
virtual void Add(TObject *obj, Option_t *opt)
const Bool_t kIterForward
std::shared_ptr< TObjLink > TObjLinkPtr_t
Bool_t operator!=(const TDatime &d1, const TDatime &d2)
const Bool_t kSortDescending
TObjLinkPtr_t NewOptLink(TObject *obj, Option_t *opt, const TObjLinkPtr_t &prev=nullptr)
Return a new TObjOptLink (a TObjLink that also stores the option).
virtual TIterator * MakeIterator(Bool_t dir=kIterForward) const
Return a list iterator.
virtual ~TList()
Delete the list.
Option_t * GetAddOption() const
virtual Option_t * GetOption() const
std::shared_ptr< TObjLink > TObjLinkPtr_t
std::weak_ptr< TObjLink > TObjLinkWeakPtr_t
const TCollection * GetCollection() const
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
TObjOptLink(TObject *obj, Option_t *opt)
std::shared_ptr< TObjLink > TObjLinkPtr_t
virtual TObject * Remove(TObject *obj)
Remove object from the list.
Collection abstract base class.
virtual TObject * Before(const TObject *obj) const
Returns the object before object obj.
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
bool operator==(TObjOptLink *l, const std::shared_ptr< TObjLink > &r)
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
void Reset(Detail::TBranchProxy *x)
virtual void AddBefore(const TObject *before, TObject *obj)
Insert object before object before in the list.
virtual TObjLink * FirstLink() const
TObjLinkPtr_t * DoSort(TObjLinkPtr_t *head, Int_t n)
Sort linked list.
Bool_t fAscending
cache to speedup sequential calling of Before() and After() functions
Wrapper around a TObject so it can be stored in a TList.
TObject * operator*() const
Return current object or nullptr.
const Bool_t kSortAscending
virtual Option_t * GetOption() const
virtual void Clear(Option_t *option="")
Remove all objects from the list.
virtual void AddAfter(const TObject *after, TObject *obj)
Insert object after object after in the list.
Mother of all ROOT objects.
TObject * GetObject() const
virtual void Add(TObject *obj)
virtual void RecursiveRemove(TObject *obj)
Remove object from this collection and recursively remove the object from all other objects (and coll...
void SetOption(Option_t *option)
virtual TObjLink * LastLink() const
virtual TObject ** GetObjectRef(const TObject *obj) const
Return address of pointer to obj.
virtual Option_t * GetAddOption() const
TObjLinkPtr_t fLast
pointer to first entry in linked list
void SetObject(TObject *obj)
TObjLink * FindLink(const TObject *obj, Int_t &idx) const
Returns the TObjLink object that contains object obj.
TObjLinkPtr_t NewLink(TObject *obj, const TObjLinkPtr_t &prev=nullptr)
Return a new TObjLink.
const char * Data() const