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

Factory to create standard pre-defined samples. More...

+ Inheritance diagram for SampleBuilderFactory:

Public Member Functions

MultiLayercreateSampleByName (const std::string &name)
 Retrieves a SampleBuilder from the registry, does the build, and returns the result.
 
- Public Member Functions inherited from IFactory< std::string, ISampleBuilder >
ISampleBuildercreateItem (const std::string &item_key) const
 Creates object by calling creation function corresponded to given identifier.
 
std::unique_ptr< ISampleBuildercreateItemPtr (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.
 

Additional Inherited Members

- Public Types inherited from IFactory< std::string, ISampleBuilder >
typedef std::function< ISampleBuilder *()> 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
 
- Protected Attributes inherited from IFactory< std::string, ISampleBuilder >
CallbackMap_t m_callbacks
 map of correspondence of objectsId and creation functions
 

Detailed Description

Factory to create standard pre-defined samples.

Definition at line 26 of file SampleBuilderFactory.h.


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