#include <ComponentFactoryByName.h>
Public Types | |
typedef std::map< std::string, B * > | BuilderMapType |
Static Public Member Functions | |
static B * | getBuilder (const std::string &name) |
static void | setBuilder (B *in, const std::string &name) |
Static Protected Member Functions | |
static BuilderMapType & | myMap () |
Definition at line 10 of file ComponentFactoryByName.h.
typedef std::map<std::string,B *> ComponentFactoryByName< B >::BuilderMapType |
Definition at line 27 of file ComponentFactoryByName.h.
static B* ComponentFactoryByName< B >::getBuilder | ( | const std::string & | name | ) | [inline, static] |
Definition at line 13 of file ComponentFactoryByName.h.
References end, spr::find(), ComponentFactoryByName< B >::myMap(), and findQualityFiles::size.
static BuilderMapType& ComponentFactoryByName< B >::myMap | ( | ) | [inline, static, protected] |
Definition at line 29 of file ComponentFactoryByName.h.
Referenced by ComponentFactoryByName< B >::getBuilder(), and ComponentFactoryByName< B >::setBuilder().
{ static BuilderMapType me_; return me_; }
static void ComponentFactoryByName< B >::setBuilder | ( | B * | in, |
const std::string & | name | ||
) | [inline, static] |
Definition at line 21 of file ComponentFactoryByName.h.
References recoMuon::in, ComponentFactoryByName< B >::myMap(), and mergeVDriftHistosByStation::name.
{ if (name.empty()) throw SimG4Exception("The registration of Components without name is not allowed."); myMap()[name] = in; }