38 ClassImp(RooRefCountList);
46 RooRefCountList::RooRefCountList()
57 void RooRefCountList::Add(TObject* obj, Int_t count)
60 TObject* listObj = FindObject(obj) ;
63 RooLinkedList::Add(obj, count) ;
66 RooLinkedListElem* link = findLink(obj) ;
68 while(count--) link->incRefCount() ;
81 Bool_t RooRefCountList::Remove(TObject* obj)
83 RooLinkedListElem* link = findLink(obj) ;
87 if (link->decRefCount()==0) {
89 return RooLinkedList::Remove(obj) ;
102 Bool_t RooRefCountList::RemoveAll(TObject* obj)
104 return RooLinkedList::Remove(obj) ;
112 Int_t RooRefCountList::refCount(TObject* obj)
const
114 RooLinkedListElem* link = findLink(obj) ;
118 return link->refCount() ;