ThePEG
2.2.1
|
The DescriptionList
keeps a static list of descriptions of classes included in the current run.
More...
#include <DescriptionList.h>
Public Types | |
typedef map< const type_info *, ClassDescriptionBase * > | DescriptionMap |
Map of class descriptions indexed by type_info objects. More... | |
typedef map< string, ClassDescriptionBase * > | StringMap |
Map of class descriptions indexed by platform-independent class names. More... | |
Static Public Member Functions | |
static void | Register (ClassDescriptionBase &) |
Insert a description in the list. | |
static const ClassDescriptionBase * | find (const type_info &ti) |
Get the description of a class giving its type_info object. | |
static string | className (const type_info &ti) |
Return the name of the class corresponding to the given type_info object. | |
static int | version (const type_info &ti) |
Return the version of the class corresponding to the given type_info object. | |
static string | library (const type_info &ti) |
Return the dynamic library of the class corresponding to the given type_info object. | |
static const ClassDescriptionBase * | find (const string &name) |
Get the description of a class giving its name. | |
static const DescriptionMap & | all () |
Return the static set of descriptions mapped to the relevant type_info objects. | |
static void | printHierarchies (ostream &os) |
Print the classes in the list and their base classes to a stream. More... | |
Static Protected Member Functions | |
static void | hookup () |
Hookup the base class descriptions in the list. | |
static void | insert (ClassDescriptionBase &pb) |
Insert a class description. | |
static DescriptionMap & | descriptionMap () |
Return the static set of descriptions mapped to the relevant type_info objects. More... | |
static StringMap & | stringMap () |
Return the static set of descriptions mapped to the corresponding class names. More... | |
The DescriptionList
keeps a static list of descriptions of classes included in the current run.
Definition at line 22 of file DescriptionList.h.
typedef map<const type_info *, ClassDescriptionBase *> ThePEG::DescriptionList::DescriptionMap |
Map of class descriptions indexed by type_info objects.
Definition at line 28 of file DescriptionList.h.
typedef map<string, ClassDescriptionBase *> ThePEG::DescriptionList::StringMap |
Map of class descriptions indexed by platform-independent class names.
Definition at line 36 of file DescriptionList.h.
|
staticprotected |
|
static |
Print the classes in the list and their base classes to a stream.
Mainly intended for debugging purposes.
Referenced by all().
|
staticprotected |