BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SimulationFactory Class Reference

Registry to create standard pre-defined simulations. More...

+ Inheritance diagram for SimulationFactory:

Additional Inherited Members

- Public Types inherited from IFactory< std::string, Simulation >
typedef std::function< Simulation *()> CreateItemCallback
 function which will be used to create object of AbstractProduct base type
 
typedef std::map< std::string, CreateItemCallbackCallbackMap_t
 map for correspondance between object identifier and object creation function
 
- Public Member Functions inherited from IFactory< std::string, Simulation >
SimulationcreateItem (const std::string &item_key) const
 Creates object by calling creation function corresponded to given identifier.
 
std::unique_ptr< SimulationcreateItemPtr (const std::string &item_key) const
 
bool registerItem (const std::string &item_key, CreateItemCallback CreateFn)
 Registers object's creation function.
 
bool contains (const std::string &item_key) const
 
size_t size () const
 Returns number of registered objects.
 
- Protected Attributes inherited from IFactory< std::string, Simulation >
CallbackMap_t m_callbacks
 map of correspondence of objectsId and creation functions
 

Detailed Description

Registry to create standard pre-defined simulations.

Used in functional tests, performance measurements, etc.

Definition at line 26 of file SimulationFactory.h.


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