|
std::map< std::pair< std::type_index, std::string >, JFactory * > | mFactories |
|
JFactorySet::~JFactorySet |
( |
| ) |
|
|
virtual |
The destructor will delete any factories in the set.
bool JFactorySet::Add |
( |
JFactory * |
aFactory | ) |
|
Add a JFactory to this JFactorySet. The JFactorySet assumes ownership of this factory. If the JFactorySet already contains a JFactory with the same key, throw an exception and let the user figure out what to do. This scenario occurs when the user has multiple JFactory<T> producing the same T JObject, and is not distinguishing between them via tags.
Referenced by JEvent::Insert().
Merge any factories in the specified JFactorySet into this one. Any factories which don't have the same type and tag as one already in this set will be transferred and this JFactorySet will take ownership of them. Ones that have a type and tag that matches one already in this set will be left in the original JFactorySet. Thus, all factories left in the JFactorySet passed into this method upon return from it can be considered duplicates. It will be left to the caller to delete those.
The documentation for this class was generated from the following files:
- /u/home/nbrei/src/jana2/src/libraries/JANA/JFactorySet.h
- /u/home/nbrei/src/jana2/src/libraries/JANA/JFactorySet.cc