28 #ifndef ROOT_TCollection 31 #ifndef ROOT_THashTable 135 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600 136 #pragma GCC diagnostic push 137 #pragma GCC diagnostic ignored "-Weffc++" 149 public std::iterator<std::bidirectional_iterator_tag,
150 TObject*, std::ptrdiff_t,
151 const TObject**, const TObject*&> {
177 #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600 178 #pragma GCC diagnostic pop TPair(TObject *key, TObject *value)
TPair * RemoveEntry(TObject *key)
Remove (key,value) pair with key from the map.
virtual ULong_t Hash() const
Return hash value for this object.
ULong_t Hash() const
Return hash value for this object.
TObject * operator()(const TObject *key) const
const THashTable * GetTable() const
void Add(TObject *obj)
This function may not be used (but we need to provide it since it is a pure virtual in TCollection)...
TObject ** GetObjectRef(const TObject *obj) const
const char * GetTitle() const
Returns title of object.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write all objects in this map.
virtual Bool_t IsEqual(const TObject *obj) const
Default equal comparison (objects are equal if they have the same address in memory).
virtual ~TMap()
TMap dtor.
Iterator abstract base class.
TObject * operator()(const char *keyname) const
THashTable implements a hash table to store TObject's.
#define ClassDef(name, id)
Bool_t IsEqual(const TObject *obj) const
Default equal comparison (objects are equal if they have the same address in memory).
void DeleteAll()
Remove all (key,value) pairs from the map AND delete the keys AND values when they are allocated on t...
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
const Bool_t kIterForward
Int_t Capacity() const
Return number of slots in the hashtable.
Bool_t operator!=(const TDatime &d1, const TDatime &d2)
Float_t AverageCollisions() const
Return the ratio of entries vs occupied slots.
TObject * FindObject(const char *keyname) const
Check if a (key,value) pair exists with keyname as name of the key.
void SetValue(TObject *val)
virtual void SetOwnerValue(Bool_t enable=kTRUE)
Set whether this map is the owner (enable==true) of its values.
Using a TBrowser one can browse all ROOT objects.
virtual void SetOwnerKeyValue(Bool_t ownkeys=kTRUE, Bool_t ownvals=kTRUE)
Set ownership for keys and values.
void Delete(Option_t *option="")
Remove all (key,value) pairs from the map AND delete the keys when they are allocated on the heap...
TObject * Remove(TObject *key)
Remove the (key,value) pair with key from the map.
TTime operator*(const TTime &t1, const TTime &t2)
TIterator * MakeIterator(Bool_t dir=kIterForward) const
Create an iterator for TMap.
Bool_t DeleteEntry(TObject *key)
Remove (key,value) pair with key from the map.
Collection abstract base class.
Bool_t TestBit(UInt_t f) const
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
void Reset(Detail::TBranchProxy *x)
void DeleteValues()
Remove all (key,value) pairs from the map AND delete the values when they are allocated on the heap...
void Rehash(Int_t newCapacity, Bool_t checkObjValidity=kTRUE)
Rehash the underlaying THashTable (see THashTable::Rehash()).
Class used by TMap to store (key,value) pairs.
virtual const char * GetName() const
Returns name of object.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
TObject ** GetObjectRef(const TObject *obj) const
Return address of pointer to obj.
void Browse(TBrowser *b)
Browse this collection (called by TBrowser).
virtual void PrintCollectionEntry(TObject *entry, Option_t *option, Int_t recurse) const
Print the collection entry.
Mother of all ROOT objects.
Bool_t IsOwnerValue() const
const TCollection * GetCollection() const
const char * GetName() const
Returns name of object.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual const char * GetTitle() const
Returns title of object.
void Clear(Option_t *option="")
Remove all (key,value) pairs from the map.
Int_t Collisions(const char *keyname) const
Returns the number of collisions for a key with a certain name (i.e.
TMap & operator=(const TMap &map)