131#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600
132#pragma GCC diagnostic push
133#pragma GCC diagnostic ignored "-Weffc++"
169 void Reset()
override;
177#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40600
178#pragma GCC diagnostic pop
#define ClassDefOverride(name, id)
const Bool_t kIterForward
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Using a TBrowser one can browse all ROOT objects.
Collection abstract base class.
THashTable implements a hash table to store TObject's.
TObject ** GetObjectRef(const TObject *obj) const override
Return address of pointer to obj.
Iterator abstract base class.
std::ptrdiff_t difference_type
std::bidirectional_iterator_tag iterator_category
TObject * operator*() const override
Return pointer to current object (a TPair) or nullptr.
TObject * Next() override
Returns the next key from a map.
~TMapIter()
Map iterator dtor.
const TCollection * GetCollection() const override
Bool_t operator!=(const TIterator &aIter) const override
This operator compares two TIterator objects.
void Reset() override
Reset the map iterator.
TIterator & operator=(const TIterator &rhs) override
Overridden assignment operator.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
void DeleteAll()
Remove all (key,value) pairs from the map AND delete the keys AND values when they are allocated on t...
TPair * RemoveEntry(TObject *key)
Remove (key,value) pair with key from the map.
virtual ~TMap()
TMap dtor.
void Delete(Option_t *option="") override
Remove all (key,value) pairs from the map AND delete the keys when they are allocated on the heap.
Int_t Collisions(const char *keyname) const
Returns the number of collisions for a key with a certain name (i.e.
void Add(TObject *obj) override
This function may not be used (but we need to provide it since it is a pure virtual in TCollection).
virtual void SetOwnerKeyValue(Bool_t ownkeys=kTRUE, Bool_t ownvals=kTRUE)
Set ownership for keys and values.
TObject * FindObject(const char *keyname) const override
Check if a (key,value) pair exists with keyname as name of the key.
void PrintCollectionEntry(TObject *entry, Option_t *option, Int_t recurse) const override
Print the collection entry.
Float_t AverageCollisions() const
Return the ratio of entries vs occupied slots.
Int_t Write(const char *name=nullptr, Int_t option=0, Int_t bufsize=0) override
Write all objects in this map.
TObject * Remove(TObject *key) override
Remove the (key,value) pair with key from the map.
TObject * operator()(const char *keyname) const
void DeleteValues()
Remove all (key,value) pairs from the map AND delete the values when they are allocated on the heap.
Bool_t DeleteEntry(TObject *key)
Remove (key,value) pair with key from the map.
void Clear(Option_t *option="") override
Remove all (key,value) pairs from the map.
TObject ** GetObjectRef(const TObject *obj) const override
TIterator * MakeIterator(Bool_t dir=kIterForward) const override
Create an iterator for TMap.
Bool_t IsOwnerValue() const
virtual void SetOwnerValue(Bool_t enable=kTRUE)
Set whether this map is the owner (enable==true) of its values.
Int_t Capacity() const
Return number of slots in the hashtable.
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
TMap & operator=(const TMap &map)=delete
TMap(const TMap &map)=delete
TObject * operator()(const TObject *key) const
const THashTable * GetTable() const
void Rehash(Int_t newCapacity, Bool_t checkObjValidity=kTRUE)
Rehash the underlaying THashTable (see THashTable::Rehash()).
Mother of all ROOT objects.
virtual Bool_t IsEqual(const TObject *obj) const
Default equal comparison (objects are equal if they have the same address in memory).
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
virtual const char * GetTitle() const
Returns title of object.
virtual ULong_t Hash() const
Return hash value for this object.
Class used by TMap to store (key,value) pairs.
void Browse(TBrowser *b) override
Browse the pair.
const char * GetName() const override
Returns name of object.
void SetValue(TObject *val)
const char * GetTitle() const override
Returns title of object.
ULong_t Hash() const override
Return hash value for this object.
virtual ~TPair()
TPair destructor.
Bool_t IsFolder() const override
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
TPair(TObject *key, TObject *value)
TPair & operator=(const TPair &)=delete
Bool_t IsEqual(const TObject *obj) const override
Default equal comparison (objects are equal if they have the same address in memory).