Mantid
|
The FuncMinimizerFactory class is in charge of the creation of concrete instances of minimizers. More...
#include <FuncMinimizerFactory.h>
Public Member Functions | |
std::shared_ptr< IFuncMinimizer > | createMinimizer (const std::string &str) const |
Creates an instance of a minimizer. More... | |
Public Member Functions inherited from Mantid::Kernel::DynamicFactory< IFuncMinimizer > | |
virtual std::shared_ptr< IFuncMinimizer > | create (const std::string &className) const |
Creates a new instance of the class with the given name. More... | |
virtual IFuncMinimizer * | createUnwrapped (const std::string &className) const |
Creates a new instance of the class with the given name, which is not wrapped in a boost shared_ptr. More... | |
void | disableNotifications () |
Disable notifications. More... | |
DynamicFactory (const DynamicFactory &)=delete | |
void | enableNotifications () |
Enable notifications. More... | |
bool | exists (const std::string &className) const |
Returns true if the given class is currently registered. More... | |
virtual const std::vector< std::string > | getKeys () const |
Returns the keys in the map. More... | |
DynamicFactory & | operator= (const DynamicFactory &)=delete |
void | subscribe (const std::string &className) |
Registers the instantiator for the given class with the DynamicFactory. More... | |
void | subscribe (const std::string &className, std::unique_ptr< AbstractFactory > pAbstractFactory, SubscribeAction replace=ErrorIfExists) |
Registers the instantiator for the given class with the DynamicFactory. More... | |
void | unsubscribe (const std::string &className) |
Unregisters the given class and deletes the instantiator for the class. More... | |
virtual | ~DynamicFactory ()=default |
Destroys the DynamicFactory and deletes the instantiators for all registered classes. More... | |
Private Member Functions | |
FuncMinimizerFactoryImpl () | |
Private Constructor for singleton class. More... | |
Friends | |
struct | Mantid::Kernel::CreateUsingNew< FuncMinimizerFactoryImpl > |
Additional Inherited Members | |
Public Types inherited from Mantid::Kernel::DynamicFactory< IFuncMinimizer > | |
using | AbstractFactory = AbstractInstantiator< IFuncMinimizer > |
A typedef for the instantiator. More... | |
enum | NotificationStatus |
Defines the whether notifications are dispatched. More... | |
enum | SubscribeAction |
Defines replacement behaviour. More... | |
Public Attributes inherited from Mantid::Kernel::DynamicFactory< IFuncMinimizer > | |
Poco::NotificationCenter | notificationCenter |
Sends notifications to observers. More... | |
Protected Member Functions inherited from Mantid::Kernel::DynamicFactory< IFuncMinimizer > | |
DynamicFactory () | |
Protected constructor for base class. More... | |
The FuncMinimizerFactory class is in charge of the creation of concrete instances of minimizers.
It inherits most of its implementation from the Dynamic Factory base class. It is implemented as a singleton class.
Definition at line 36 of file FuncMinimizerFactory.h.
|
private |
Private Constructor for singleton class.
Definition at line 16 of file FuncMinimizerFactory.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance().
std::shared_ptr< IFuncMinimizer > Mantid::API::FuncMinimizerFactoryImpl::createMinimizer | ( | const std::string & | str | ) | const |
Creates an instance of a minimizer.
str | :: The minimizer initialization string which includes its type and optionally properties: "type,prop1=value1,prop2=value2" |
Definition at line 29 of file FuncMinimizerFactory.cpp.
References Mantid::Kernel::DynamicFactory< IFuncMinimizer >::create(), n, Mantid::API::Expression::parse(), Mantid::API::Expression::size(), Mantid::API::Expression::str(), and Mantid::API::Expression::toList().
|
friend |
Definition at line 39 of file FuncMinimizerFactory.h.