Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtModel.hh
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | public: | ||||
EvtDecayBase* getFcn( std::string model_name ); | EvtDecayBase* getFcn( std::string model_name ); | ||||
int isCommand( std::string cmd ); | int isCommand( std::string cmd ); | ||||
void storeCommand( std::string cmd, std::string cnfgstr ); | void storeCommand( std::string cmd, std::string cnfgstr ); | ||||
private: | private: | ||||
EvtModel(); | EvtModel(); | ||||
static EvtModel* _instance; | static EvtModel* m_instance; | ||||
std::map<std::string, EvtDecayBase*> _modelNameHash; | std::map<std::string, EvtDecayBase*> m_modelNameHash; | ||||
std::map<std::string, EvtDecayBase*> _commandNameHash; | std::map<std::string, EvtDecayBase*> m_commandNameHash; | ||||
}; | }; | ||||
inline EvtModel& EvtModel::instance() | inline EvtModel& EvtModel::instance() | ||||
{ | { | ||||
if ( _instance == 0 ) | if ( m_instance == 0 ) | ||||
_instance = new EvtModel; | m_instance = new EvtModel; | ||||
return *_instance; | return *m_instance; | ||||
} | } | ||||
#endif | #endif |