BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Factory to create standard pre-defined samples. More...
Public Member Functions | |
MultiLayer * | createSampleByName (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 > | |
ISampleBuilder * | createItem (const std::string &item_key) const |
Creates object by calling creation function corresponded to given identifier. | |
std::unique_ptr< ISampleBuilder > | createItemPtr (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, CreateItemCallback > | CallbackMap_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 | |
Factory to create standard pre-defined samples.
Definition at line 26 of file SampleBuilderFactory.h.