12 #ifndef ROOT_TClassTable
13 #define ROOT_TClassTable
37 class TMapTypeToClassRec;
76 static void AddAlternate(
const char *normname,
const char *alternate);
79 static Bool_t Check(
const char *cname, std::string &normname);
91 static void Remove(
const char *cname);
static ROOT::TClassRec ** fgSortedTable
ROOT top level object description.
Namespace for new ROOT classes and functions.
static Bool_t Check(const char *cname, std::string &normname)
R__EXTERN TClassTable * gClassTable
static Version_t GetID(const char *cname)
Returns the ID of a class.
static TProtoClass * GetProtoNorm(const char *cname)
Given the class normalized name returns the TClassProto object for the class.
static void SortTable()
Sort the class table by ascending class ID's.
static TProtoClass * GetProto(const char *cname)
Given the class name returns the TClassProto object for the class.
Persistent version of a TClass.
ROOT::TMapTypeToClassRec IdMap_t
void AddClass(const char *cname, Version_t id, const type_info &info, DictFuncPtr_t dict, Int_t pragmabits)
Global function called by the ctor of a class's init class (see the ClassImp macro).
This class registers for all classes their name, id and dictionary function in a hash table...
TClassTable()
TClassTable is a singleton (i.e. only one can exist per application).
#define ClassDef(name, id)
static void Add(const char *cname, Version_t id, const type_info &info, DictFuncPtr_t dict, Int_t pragmabits)
Add a class to the class table (this is a static function).
static ROOT::TClassRec ** fgTable
TClass *(* DictFuncPtr_t)()
void ResetClassVersion(TClass *, const char *, Short_t)
Global function to update the version number.
void RemoveClass(const char *cname)
Global function called by the dtor of a class's init class (see the ClassImp macro).
static void AddAlternate(const char *normname, const char *alternate)
static void Remove(const char *cname)
Remove a class from the class table.
static Int_t GetPragmaBits(const char *name)
Returns the pragma bits as specified in the LinkDef.h file.
The ROOT global object gROOT contains a list of all defined classes.
static void Terminate()
Deletes the class table (this static class function calls the dtor).
static ROOT::TClassRec * FindElement(const char *cname, Bool_t insert=kFALSE)
Find a class by name in the class table (using hash of name).
static char * Next()
Returns next class from sorted class table.
~TClassTable()
TClassTable singleton is deleted in Terminate().
static DictFuncPtr_t GetDict(const char *cname)
Given the class name returns the Dictionary() function of a class (uses hash of name).
void Print(Option_t *option="") const
Print the class table.
Mother of all ROOT objects.
static void PrintTable()
Print the class table.
static ROOT::TClassRec * FindElementImpl(const char *cname, Bool_t insert)
Find a class by name in the class table (using hash of name).
static char * At(UInt_t index)
Returns class at index from sorted class table.
static DictFuncPtr_t GetDictNorm(const char *cname)
Given the normalized class name returns the Dictionary() function of a class (uses hash of name)...
static ROOT::TClassAlt ** fgAlternate