25 #ifndef ROOT_TSeqCollection
34 #if (__GNUC__ >= 3) && !defined(__INTEL_COMPILER)
37 #pragma GCC system_header
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
Option_t * GetOption() const
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).
TObjLink * LinkAt(Int_t idx) const
sorting order (when calling Sort() or for TSortedList)
virtual void DeleteLink(TObjLink *lnk)
Delete a TObjLink object.
virtual void RemoveLast()
Remove the last object of the list.
virtual Option_t * GetOption() const
virtual void AddFirst(TObject *obj)
Add object at the beginning of the list.
Option_t * GetOption() const
Returns the object option stored in the list.
virtual Option_t * GetAddOption() const
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
TObject * Next()
Return next object in the list. Returns 0 when no more objects in list.
TObject ** GetObjectRef()
TObjOptLink(TObject *obj, TObjLink *lnk, Option_t *opt)
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
Iterator abstract base class.
virtual void AddLast(TObject *obj)
Add object at the end of the list.
TList & operator=(const TList &)
virtual void Sort(Bool_t order=kSortAscending)
Sort linked list.
const char * Data() const
virtual void SetOption(Option_t *)
Sequenceable collection abstract base class.
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
#define ClassDef(name, id)
virtual void Add(TObject *obj, Option_t *opt)
TLine l1(2.5, 4.5, 15.5, 4.5)
std::map< std::string, std::string >::const_iterator iter
virtual TObjLink * LastLink() const
virtual Option_t * GetOption() const
const Bool_t kIterForward
Bool_t LnkCompare(TObjLink *l1, TObjLink *l2)
Compares the objects stored in the TObjLink objects.
TObjLink & operator=(const TObjLink &)
const TCollection * GetCollection() const
const Bool_t kSortDescending
virtual TObject * Before(const TObject *obj) const
Returns the object before object obj.
TObjOptLink(TObject *obj, Option_t *opt)
virtual TObject * Remove(TObject *obj)
Remove object from the list.
Collection abstract base class.
TObject * GetObject() const
TObjLink * fLast
pointer to first entry in linked list
virtual TObjLink * FirstLink() const
virtual void AddBefore(const TObject *before, TObject *obj)
Insert object before object before in the list.
Option_t * GetAddOption() const
virtual TObject * Last() const
Return the last object in the list. Returns 0 when list is empty.
Bool_t operator!=(const TIterator &aIter) const
This operator compares two TIterator objects.
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.
const Bool_t kSortAscending
virtual void Clear(Option_t *option="")
Remove all objects from the list.
void SetOption(Option_t *option)
Sets the object option stored in the list.
virtual void AddAfter(const TObject *after, TObject *obj)
Insert object after object after in the list.
Mother of all ROOT objects.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
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 * FindLink(const TObject *obj, Int_t &idx) const
Returns the TObjLink object that contains object obj.
TObjLink * fCache
pointer to last entry in linked list
void SetOption(Option_t *option)
void Reset()
Reset list iterator.
virtual TIterator * MakeIterator(Bool_t dir=kIterForward) const
Return a list iterator.
virtual TObject ** GetObjectRef(const TObject *obj) const
Return address of pointer to obj.
TObject * operator*() const
Return current object or nullptr.
virtual TObjLink * NewLink(TObject *obj, TObjLink *prev=NULL)
Return a new TObjLink.
TIterator & operator=(const TIterator &rhs)
Overridden assignment operator.
void SetObject(TObject *obj)