ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/database/pdbcal/base/PHGenericFactoryT.h>
Classes | |
class | ProductCreatorPair |
Public Types | |
typedef AbstractProduct *(* | ProductCreator )() |
typedef std::string | IdentifierType |
Public Member Functions | |
AbstractProduct * | create (const char *id) |
Create an object identified by the string id. | |
void | print (std::ostream &os=std::cout) const |
Print the list of creators we have. | |
bool | registerCreator (const IdentifierType &id, ProductCreator creator, const char *productname) |
Register a creator function for id. | |
bool | unregisterCreator (const IdentifierType &id) |
Unregister a creator. | |
Static Public Member Functions | |
static PHGenericFactoryT < AbstractProduct, FactoryErrorPolicy > & | instance () |
The factory is a singleton. | |
Private Types | |
typedef std::map < IdentifierType, ProductCreatorPair > | CreatorMap |
Private Member Functions | |
PHGenericFactoryT () | |
PHGenericFactoryT (const PHGenericFactoryT< AbstractProduct > &) | |
PHGenericFactoryT < AbstractProduct > & | operator= (const PHGenericFactoryT< AbstractProduct > &) |
~PHGenericFactoryT () | |
Private Attributes | |
CreatorMap | fCreators |
Definition at line 37 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 37 of file PHGenericFactoryT.h
|
private |
Definition at line 144 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 144 of file PHGenericFactoryT.h
typedef std::string PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::IdentifierType |
Definition at line 42 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 42 of file PHGenericFactoryT.h
typedef AbstractProduct*(* PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::ProductCreator)() |
Definition at line 41 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 41 of file PHGenericFactoryT.h
|
inlineprivate |
Definition at line 138 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 138 of file PHGenericFactoryT.h
|
private |
|
inlineprivate |
Definition at line 142 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 142 of file PHGenericFactoryT.h
|
inline |
Create an object identified by the string id.
Definition at line 70 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 70 of file PHGenericFactoryT.h
References PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::fCreators, and it.
|
inlinestatic |
The factory is a singleton.
Definition at line 63 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 63 of file PHGenericFactoryT.h
|
private |
|
inline |
Print the list of creators we have.
Definition at line 95 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 95 of file PHGenericFactoryT.h
References PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::fCreators, and it.
|
inline |
Register a creator function for id.
Definition at line 107 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 107 of file PHGenericFactoryT.h
References PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::fCreators.
|
inline |
Unregister a creator.
Definition at line 131 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 131 of file PHGenericFactoryT.h
References PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::fCreators.
|
private |
Definition at line 145 of file PHGenericFactoryT.h.
View newest version in sPHENIX GitHub at line 145 of file PHGenericFactoryT.h
Referenced by PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::create(), PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::print(), PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::registerCreator(), and PHGenericFactoryT< AbstractProduct, FactoryErrorPolicy >::unregisterCreator().