28 if (IsArgNull(
"Add", obj))
return;
30 if (!obj->IsSortable()) {
31 Error(
"Add",
"object must be sortable");
44 if ((IsAscending() && cmp > 0) || (!IsAscending() && cmp < 0)) {
46 NewLink(obj, lnk->
Prev());
69 Error(
"Add",
"object must be sortable");
virtual TObjLink * NewOptLink(TObject *obj, Option_t *opt, TObjLink *prev=NULL)
Return a new TObjOptLink (a TObjLink that also stores the option).
void Add(THist< DIMENSION, PRECISIONA > &to, THist< DIMENSION, PRECISIONB > &from)
virtual void AddFirst(TObject *obj)
Add object at the beginning of the list.
virtual void AddLast(TObject *obj)
Add object at the end of the list.
Bool_t IsArgNull(const char *where, const TObject *obj) const
Returns true if object is a null pointer.
A sorted doubly linked list.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void Error(const char *location, const char *msgfmt,...)
virtual Bool_t IsSortable() const
TObject * GetObject() const
ClassImp(TSortedList) void TSortedList
Add object in sorted list.
Wrapper around a TObject so it can be stored in a TList.
Mother of all ROOT objects.
typedef void((*Func_t)())
virtual void Add(TObject *obj)
virtual Int_t Compare(const TObject *obj) const
Compare abstract method.