thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::TypeInfo Struct Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ name()

template<typename T >
static string ThePEG::TypeInfo::name ( const T &  )
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().

◆ version()

template<typename T >
static int ThePEG::TypeInfo::version ( const T &  )
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().


The documentation for this struct was generated from the following file: