16 #ifndef ROO_LINKED_LIST
17 #define ROO_LINKED_LIST
82 void Print(
const char* opt)
const ;
120 template <
bool ascending>
124 typedef RooLinkedListImplDetails::Pool
Pool;
const char * GetName() const
Returns name of object.
static RooLinkedListElem * mergesort_impl(RooLinkedListElem *l1, const unsigned sz, RooLinkedListElem **tail=0)
length 0, 1 lists are sorted
void Print(const char *opt) const
Print contents of list, defers to Print() function of contained objects.
virtual TObject * Clone(const char *=0) const
Make a clone of an object using the Streamer facility.
RooHashTable * _htableLink
Hash table by name.
virtual Bool_t Remove(TObject *arg)
Remove object from collection.
void setHashTableSize(Int_t size)
Change the threshold for hash-table use to given size.
RooAbsArg * findArg(const RooAbsArg *) const
Return pointer to object with given name in collection.
RooLinkedListImplDetails::Pool Pool
memory pool for quick allocation of RooLinkedListElems
void Clear(Option_t *o=0)
Remove all elements from collection.
void SetName(const char *name)
Iterator abstract base class.
void Sort(Bool_t ascend=kTRUE)
Bool_t Replace(const TObject *oldArg, const TObject *newArg)
Replace object 'oldArg' in collection with new object 'newArg'.
const char * Data() const
#define ClassDef(name, id)
RooLinkedListElem * _first
Int_t getHashTableSize() const
Int_t IndexOf(const char *name) const
Return position of given object in list.
TString _name
Hash table by link pointer.
TIterator * MakeIterator(Bool_t dir=kTRUE) const
Return an iterator over this list.
void useNptr(Bool_t flag)
virtual void Add(TObject *arg)
RooLinkedList(Int_t htsize=0)
RooLinkedListElem * findLink(const TObject *arg) const
Find the element link containing the given object.
TObject * FindObject(const char *name) const
Return pointer to obejct with given name.
void Delete(Option_t *o=0)
Remove all elements in collection and delete all elements NB: Collection does not own elements...
RooFIter fwdIterator() const
TObject * At(Int_t index) const
Return object stored in sequential position given by index.
TObject * find(const char *name) const
Return pointer to object with given name in collection.
ULong_t Hash() const
Return hash value for this object.
RooLinkedList & operator=(const RooLinkedList &other)
Assignment operator, copy contents from 'other'.
Mother of all ROOT objects.
RooLinkedListElem * _last
Link to first element of list.
void deleteElement(RooLinkedListElem *)
static Pool * _pool
shared memory pool for allocation of RooLinkedListElems
virtual ~RooLinkedList()
Destructor.
RooLinkedListIter iterator(Bool_t dir=kTRUE) const
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooLinkedListElem * createElement(TObject *obj, RooLinkedListElem *elem=0)
cout << "RooLinkedList::createElem(" << this << ") obj = " << obj << " elem = " << elem << endl ; ...
RooHashTable * _htableName
Link to last element of list.
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.