29 if (IsArgNull(
"Add", obj))
return;
31 if (!obj->IsSortable()) {
32 Error(
"Add",
"object must be sortable");
45 if ((IsAscending() && cmp > 0) || (!IsAscending() && cmp < 0)) {
47 NewLink(obj, lnk->
Prev());
70 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).
Bool_t IsArgNull(const char *where, const TObject *obj) const
Returns true if object is a null pointer.
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.
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
A sorted doubly linked list.
void Error(const char *location, const char *msgfmt,...)
virtual Bool_t IsSortable() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual Int_t Compare(const TObject *obj) const
Compare abstract method.
Wrapper around a TObject so it can be stored in a TList.
Mother of all ROOT objects.
TObject * GetObject() const
typedef void((*Func_t)())
virtual void Add(TObject *obj)
void Add(TObject *obj)
Add object in sorted list.