25 #ifndef ROOT_TSeqCollection 34 #if (__GNUC__ >= 3) && !defined(__INTEL_COMPILER) 37 #pragma GCC system_header 72 TList() : fFirst(0), fLast(0), fCache(0), fAscending(
kTRUE) { }
175 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600 176 #pragma GCC diagnostic push 177 #pragma GCC diagnostic ignored "-Weffc++" 188 public std::iterator<std::bidirectional_iterator_tag,
189 TObject*, std::ptrdiff_t,
190 const TObject**, const TObject*&> {
221 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600 222 #pragma GCC diagnostic pop 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.
virtual TObjLink * NewOptLink(TObject *obj, Option_t *opt, TObjLink *prev=NULL)
Return a new TObjOptLink (a TObjLink that also stores the option).
virtual void DeleteLink(TObjLink *lnk)
Delete a TObjLink object.
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 ** GetObjectRef()
TObjOptLink(TObject *obj, TObjLink *lnk, Option_t *opt)
Iterator abstract base class.
virtual void AddLast(TObject *obj)
Add object at the end of the list.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
TList & operator=(const TList &)
virtual void Sort(Bool_t order=kSortAscending)
Sort linked list.
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
Bool_t LnkCompare(TObjLink *l1, TObjLink *l2)
Compares the objects stored in the TObjLink objects.
Bool_t operator!=(const TDatime &d1, const TDatime &d2)
const Bool_t kSortDescending
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
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)
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.
TObjLink * fLast
pointer to first entry in linked list
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
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
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
TObjLink ** DoSort(TObjLink **head, Int_t n)
Sort linked list.
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...
TObjLink * fCache
pointer to last entry in linked list
void SetOption(Option_t *option)
virtual TObjLink * LastLink() const
virtual TObjLink * NewLink(TObject *obj, TObjLink *prev=NULL)
Return a new TObjLink.
virtual TObject ** GetObjectRef(const TObject *obj) const
Return address of pointer to obj.
virtual Option_t * GetAddOption() const
void SetObject(TObject *obj)
TObjLink * FindLink(const TObject *obj, Int_t &idx) const
Returns the TObjLink object that contains object obj.
const char * Data() const