47 _hashMethod(hashMethod)
75 for (i=0 ; i<
_size ; i++) {
110 if (
_arr[slot]->Remove(arg)) {
112 if (
_arr[slot]->GetSize()==0) {
130 for (i=0 ; i<
_size ; i++) {
131 if (i != slot &&
_arr[i] &&
_arr[i]->Remove(arg)) {
133 if (
_arr[i]->GetSize()==0) {
153 for (i=0 ; i<20 ; i++) h[i]=0 ;
155 for (i=0 ; i<
_size ; i++) {
182 if (newSlot == slot) {
230 return elem ? elem->
_arg : 0 ;
247 while ((obj=it.
next())) {
249 if (elem->
_arg == hashArg)
return elem ;
287 for (i=0 ; i<
_size ; i++) {
virtual const char * GetName() const
Returns name of object.
Double_t avgCollisions() const
Calculate the average number of collisions (table slots with >1 filled entry)
Bool_t TestBit(UInt_t f) const
TObject * find(const char *name) const
Return pointer to object with given name in collection.
RooHashTable(Int_t initSize=17, HashMethod hashMethod=Name)
Construct a hash table with given capacity and hash method.
RooFIter fwdIterator() const
Bool_t replace(const TObject *oldArg, const TObject *newArg, const TObject *oldHashArg=0)
Replace oldArg with newArg in the table.
Bool_t Replace(const TObject *oldArg, const TObject *newArg)
Replace object 'oldArg' in collection with new object 'newArg'.
virtual ULong_t Hash() const
Return hash value for this object.
RooLinkedListElem * findLinkTo(const TObject *arg) const
Return RooLinkedList element link to object 'hashArg'.
RooHashTable implements a hash table for TObjects.
void useNptr(Bool_t flag)
virtual void Add(TObject *arg)
void add(TObject *arg, TObject *hashArg=0)
Add given object to table.
RooSetPair * findSetPair(const RooArgSet *set1, const RooArgSet *set2) const
Return RooSetPair with given pointers in table.
TObject * find(const char *name) const
Return the object with given name from the table.
Bool_t remove(TObject *arg, TObject *hashArg=0)
Remove given object from table.
ULong_t Hash(const void *txt, Int_t ntxt)
Calculates hash index from any char string.
virtual ~RooHashTable()
Destructor.
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
Mother of all ROOT objects.
Long_t NextPrime(Long_t x)
TMath Base functionsDefine the functions Min, Max, Abs, Sign, Range for all types.
Short_t Max(Short_t a, Short_t b)
ULong_t hash(const TObject *arg) const
RooAbsArg * findArg(const RooAbsArg *) const
Return pointer to object with given name in collection.
RooLinkedListElem is an link element for the RooLinkedList class.
RooAbsArg * findArg(const RooAbsArg *arg) const
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooSetPair is a utility class that stores a pair of RooArgSets.
const TNamed * namePtr() const