12#ifndef ROOT_THashTable 
   13#define ROOT_THashTable 
#define ClassDef(name, id)
 
const Bool_t kIterForward
 
UInt_t Hash(const TString &s)
 
Collection abstract base class.
 
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
 
const THashTable * fTable
 
Bool_t operator!=(const TIterator &aIter) const
This operator compares two TIterator objects.
 
~THashTableIter()
Delete hashtable iterator.
 
void Reset()
Reset the hashtable iterator.
 
Int_t NextSlot()
Returns index of next slot in table containing list to be iterated.
 
TObject * Next()
Return next object in hashtable. Returns 0 when no more objects in table.
 
TObject * operator*() const
Return pointer to current object or nullptr.
 
TIterator & operator=(const TIterator &rhs)
Overridden assignment operator.
 
const TCollection * GetCollection() const
 
THashTable implements a hash table to store TObject's.
 
Float_t AverageCollisions() const
 
THashTable & operator=(const THashTable &)
 
TObject * Remove(TObject *obj)
Remove object from the hashtable.
 
Int_t GetSize() const
Return the capacity of the collection, i.e.
 
virtual void AddAll(const TCollection *col)
Add all objects from collection col to this collection.
 
const TList * GetListForObject(const char *name) const
Return the TList corresponding to object's name based hash value.
 
TObject ** GetObjectRef(const TObject *obj) const
Return address of pointer to obj.
 
void AddImpl(Int_t slot, TObject *object)
Helper function doing the actual add to the table give a slot and object.
 
void Add(TObject *obj)
Add object to the hash table.
 
void Rehash(Int_t newCapacity, Bool_t checkObjValidity=kTRUE)
Rehash the hashtable.
 
TObject * RemoveSlow(TObject *obj)
Remove object from the hashtable without using the hash value.
 
void AddBefore(const TObject *before, TObject *obj)
Add object to the hash table.
 
void Print(Option_t *option, Int_t recurse) const
Print the collection header and its elements.
 
THashTable(const THashTable &)
 
Int_t GetRehashLevel() const
 
Int_t GetHashValue(TString &s) const
 
TIterator * MakeIterator(Bool_t dir=kIterForward) const
Returns a hash table iterator.
 
TObject * FindObject(const char *name) const
Find object using its name.
 
void Delete(Option_t *option="")
Remove all objects from the table AND delete all heap based objects.
 
Int_t Collisions(const char *name) const
Returns the number of collisions for an object with a certain name (i.e.
 
void SetRehashLevel(Int_t rehash)
 
Int_t GetHashValue(const char *str) const
 
virtual ~THashTable()
Delete a hashtable.
 
Int_t GetCheckedHashValue(TObject *obj) const
 
Int_t GetHashValue(const TObject *obj) const
 
void Clear(Option_t *option="")
Remove all objects from the table.
 
Iterator abstract base class.
 
Mother of all ROOT objects.
 
ULong_t CheckedHash()
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return t...
 
virtual ULong_t Hash() const
Return hash value for this object.
 
static constexpr double s