|
ROOT
Reference Guide |
|
Go to the documentation of this file.
12 #ifndef ROOT_TObjectTable
13 #define ROOT_TObjectTable
TObjectTable & operator=(const TObjectTable &)=delete
This class registers all instances of TObject and its derived classes in a hash table.
static void AddObj(TObject *obj)
Add an object to the global object table gObjectTable.
R__EXTERN TObjectTable * gObjectTable
void Add(TObject *obj)
Add an object to the object table.
TObjectTable(const TObjectTable &)=delete
void * CheckPtrAndWarn(const char *msg, void *vp)
Issue a warning in case an object still appears in the table while it should not.
void Terminate()
Deletes the object table (this static class function calls the dtor).
void UpdateInstCount() const
Histogram all objects according to their classes.
void FixCollisions(Int_t index)
Rehash the object table in case an object has been removed.
Int_t FindElement(TObject *obj)
Find an object in the object table.
void Delete(Option_t *opt="")
Delete all objects stored in the TObjectTable.
void Remove(TObject *obj)
Remove an object from the object table.
Bool_t PtrIsValid(TObject *obj)
TClass instances represent classes, structs and namespaces in the ROOT type system.
void InstanceStatistics() const
Print the object table.
Mother of all ROOT objects.
#define ClassDef(name, id)
void Print(Option_t *option="") const
Print the object table.
void RemoveQuietly(TObject *obj)
Remove an object from the object table.
void Expand(Int_t newsize)
Expand the object table.
~TObjectTable()
Delete TObjectTable.