TypeInfo is a simple wrapper around the ClassDescription system in ThePEG. More...
#include <TypeInfo.h>
Static Public Member Functions | |
template<typename T > | |
static string | name (const T &) |
Return the name of the class of the given object. | |
template<typename T > | |
static int | version (const T &) |
Return the version number of the class of the given object. | |
TypeInfo is a simple wrapper around the ClassDescription system in ThePEG.
Defines a few static functions for returning the mane and version of the class given objects of that class.
Definition at line 19 of file TypeInfo.h.
|
inlinestatic |
Return the name of the class of the given object.
Definition at line 23 of file TypeInfo.h.
References ThePEG::DescriptionList::find(), and ThePEG::Named::name().
|
inlinestatic |
Return the version number of the class of the given object.
Definition at line 32 of file TypeInfo.h.
References ThePEG::DescriptionList::find(), and ThePEG::ClassDescriptionBase::version().