JANA2
C++ framework for multi-threaded data processing
Loading...
Searching...
No Matches
JFactorySet Class Reference

Public Member Functions

bool Add (JFactory *aFactory)
 
void Add (JDatabundle *databundle)
 
void Print () const
 
void Clear ()
 
void Finish ()
 
JEventLevel GetLevel () const
 
void SetLevel (JEventLevel level)
 
const std::vector< JFactory * > & GetAllFactories () const
 
const std::vector< JDatabundle * > & GetAllDatabundles () const
 
JDatabundleGetDatabundle (const std::string &unique_name) const
 
JDatabundleGetDatabundle (const std::string &object_type_name, const std::string &short_or_unique_name) const
 
JDatabundleGetDatabundle (std::type_index object_type_index, const std::string &short_or_unique_name) const
 
const std::vector< JDatabundle * > & GetDatabundles (std::type_index index) const
 
const std::vector< JDatabundle * > & GetDatabundles (const std::string &object_type_name) const
 

Member Function Documentation

◆ Add()

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. Returns bool indicating whether the add succeeded.

References Add().

Referenced by Add(), and JEvent::Insert().


The documentation for this class was generated from the following files: