Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Friends | List of all members
Mantid::API::ImplicitFunctionParserFactoryImpl Class Reference

#include <ImplicitFunctionParserFactory.h>

Inheritance diagram for Mantid::API::ImplicitFunctionParserFactoryImpl:
Mantid::Kernel::DynamicFactory< ImplicitFunctionParser >

Public Member Functions

std::shared_ptr< ImplicitFunctionParsercreate (const std::string &xmlString) const override
 Creates a new instance of the class with the given name. More...
 
ImplicitFunctionParsercreateImplicitFunctionParserFromXML (const std::string &functionXML) const
 
ImplicitFunctionParsercreateImplicitFunctionParserFromXML (Poco::XML::Element *functionElement) const
 
 ImplicitFunctionParserFactoryImpl (const ImplicitFunctionParserFactoryImpl &)=delete
 
ImplicitFunctionParserFactoryImploperator= (const ImplicitFunctionParserFactoryImpl &)=delete
 
- Public Member Functions inherited from Mantid::Kernel::DynamicFactory< ImplicitFunctionParser >
virtual std::shared_ptr< ImplicitFunctionParsercreate (const std::string &className) const
 Creates a new instance of the class with the given name. More...
 
virtual ImplicitFunctionParsercreateUnwrapped (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...
 
DynamicFactoryoperator= (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

 ImplicitFunctionParserFactoryImpl ()=default
 Private Constructor for singleton class. More...
 
 ~ImplicitFunctionParserFactoryImpl () override=default
 Private Destructor. More...
 

Friends

struct Mantid::Kernel::CreateUsingNew< ImplicitFunctionParserFactoryImpl >
 

Additional Inherited Members

- Public Types inherited from Mantid::Kernel::DynamicFactory< ImplicitFunctionParser >
using AbstractFactory = AbstractInstantiator< ImplicitFunctionParser >
 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< ImplicitFunctionParser >
Poco::NotificationCenter notificationCenter
 Sends notifications to observers. More...
 
- Protected Member Functions inherited from Mantid::Kernel::DynamicFactory< ImplicitFunctionParser >
 DynamicFactory ()
 Protected constructor for base class. More...
 

Detailed Description

Definition at line 27 of file ImplicitFunctionParserFactory.h.

Constructor & Destructor Documentation

◆ ImplicitFunctionParserFactoryImpl() [1/2]

Mantid::API::ImplicitFunctionParserFactoryImpl::ImplicitFunctionParserFactoryImpl ( const ImplicitFunctionParserFactoryImpl )
delete

◆ ImplicitFunctionParserFactoryImpl() [2/2]

Mantid::API::ImplicitFunctionParserFactoryImpl::ImplicitFunctionParserFactoryImpl ( )
privatedefault

Private Constructor for singleton class.

◆ ~ImplicitFunctionParserFactoryImpl()

Mantid::API::ImplicitFunctionParserFactoryImpl::~ImplicitFunctionParserFactoryImpl ( )
overrideprivatedefault

Private Destructor.

Member Function Documentation

◆ create()

std::shared_ptr< ImplicitFunctionParser > Mantid::API::ImplicitFunctionParserFactoryImpl::create ( const std::string &  className) const
overridevirtual

Creates a new instance of the class with the given name.

The class must have been registered with subscribe() (typically done via a macro). If the class name is unknown, a NotFoundException is thrown.

Parameters
className:: the name of the class you wish to create
Returns
a shared pointer ot the base class

Reimplemented from Mantid::Kernel::DynamicFactory< ImplicitFunctionParser >.

Definition at line 16 of file ImplicitFunctionParserFactory.cpp.

References UNUSED_ARG.

◆ createImplicitFunctionParserFromXML() [1/2]

ImplicitFunctionParser * Mantid::API::ImplicitFunctionParserFactoryImpl::createImplicitFunctionParserFromXML ( const std::string &  functionXML) const

◆ createImplicitFunctionParserFromXML() [2/2]

ImplicitFunctionParser * Mantid::API::ImplicitFunctionParserFactoryImpl::createImplicitFunctionParserFromXML ( Poco::XML::Element *  functionElement) const

◆ operator=()

ImplicitFunctionParserFactoryImpl & Mantid::API::ImplicitFunctionParserFactoryImpl::operator= ( const ImplicitFunctionParserFactoryImpl )
delete

Friends And Related Function Documentation

◆ Mantid::Kernel::CreateUsingNew< ImplicitFunctionParserFactoryImpl >

Definition at line 34 of file ImplicitFunctionParserFactory.h.


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