TClassTable
class description - source file - inheritance tree
private:
TClassTable TClassTable()
static ClassRec_t* FindElement(const char* cname, Bool_t insert = kFALSE)
static void SortTable()
public:
TClassTable TClassTable(TClassTable&)
virtual void ~TClassTable()
static void Add(const char* cname, Version_t id, VoidFuncPtr_t dict, Int_t pragmabits)
static TClass* Class()
int Classes()
static VoidFuncPtr_t GetDict(const char* cname)
static Version_t GetID(const char* cname)
static Int_t GetPragmaBits(const char* name)
static void Init()
virtual TClass* IsA() const
static char* Next()
virtual void Print(Option_t* option) const
static void PrintTable()
static void Remove(const char* cname)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
static void Terminate()
private:
static ClassRec_t** fgTable
static ClassRec_t** fgSortedTable
static int fgSize
static int fgTally
static Bool_t fgSorted
static int fgCursor
public:
static const enum TObject:: kNoStreamer
static const enum TObject:: kNoInputOperator
static const enum TObject:: kAutoStreamer
This class registers for all classes their name, id and dictionary
function in a hash table. Classes are automatically added by the
ctor of a special init class when a global of this init class is
initialized when the program starts (see the ClassImp macro).
TClassTable()
TClassTable is a singleton (i.e. only one can exist per application).
~TClassTable()
TClassTable singleton is deleted in Terminate().
void Print(Option_t *) const
Print the class table.
int Classes()
______________________________________________________________________________
void Init()
void Add(const char *cname, Version_t id, VoidFuncPtr_t dict,
Int_t pragmabits)
Add a class to the class table (this is a static function).
void Remove(const char *cname)
Remove a class from the class table. This happens when a shared library
is unloaded (i.e. the dtor's of the global init objects are called).
ClassRec_t* FindElement(const char *cname, Bool_t insert)
Find a class by name in the class table (using hash of name). Returns
0 if the class is not in the table. Unless arguments insert is true in
which case a new entry is created and returned.
Version_t GetID(const char *cname)
Returns the ID of a class.
Int_t GetPragmaBits(const char *cname)
Returns the pragma bits as specified in the LinkDef.h file.
VoidFuncPtr_t GetDict(const char *cname)
Given the class name returns the Dictionary() function of a class
(uses hash of name).
char* Next()
Returns next class from sorted class table.
void PrintTable()
Print the class table. Before printing the table is sorted
alphabetically.
void SortTable()
Sort the class table by ascending class ID's.
void Terminate()
Deletes the class table (this static class function calls the dtor).
Inline Functions
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TClassTable TClassTable(TClassTable&)
Author: Fons Rademakers 11/08/95
Last update: root/cont:$Name: $:$Id: TClassTable.cxx,v 1.4 2000/12/13 16:05:18 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.