Belle II Software development
|
Class to keep a register of all Belle2 EvtDecayBases. More...
#include <EvtGenModelRegister.h>
Classes | |
class | Factory |
Helper Class to easily register new EvtDecayBases for Belle2. More... | |
Public Types | |
typedef EvtDecayBase * | ModelFactory() |
Callback type to return a new model instance. | |
Static Public Member Functions | |
static void | registerModel (ModelFactory *factory) |
Register a new Model, called by the EvtGenModelRegister::Factory class. | |
static std::list< EvtDecayBase * > | getModels () |
Return a list of models. | |
Private Member Functions | |
EvtGenModelRegister () | |
Singleton: private constructor. | |
EvtGenModelRegister (const EvtGenModelRegister &other)=delete | |
Singleton: private copy constructor. | |
EvtGenModelRegister & | operator= (const EvtGenModelRegister &)=delete |
Singleton: private assignment operator. | |
Static Private Member Functions | |
static EvtGenModelRegister & | getInstance () |
Return reference to the instance. | |
Private Attributes | |
std::vector< ModelFactory * > | m_models |
List of all registered EvtGenModels. | |
Class to keep a register of all Belle2 EvtDecayBases.
Definition at line 23 of file EvtGenModelRegister.h.
typedef EvtDecayBase * ModelFactory() |
Callback type to return a new model instance.
Definition at line 26 of file EvtGenModelRegister.h.
|
inlineprivate |
|
inlinestatic |
Register a new Model, called by the EvtGenModelRegister::Factory class.
Definition at line 44 of file EvtGenModelRegister.h.
|
private |
List of all registered EvtGenModels.
Definition at line 71 of file EvtGenModelRegister.h.