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

Constructs a DomainCreator object from a string. More...

#include <DomainCreatorFactory.h>

Inheritance diagram for Mantid::API::DomainCreatorFactoryImpl:
Mantid::Kernel::DynamicFactory< IDomainCreator >

Public Member Functions

IDomainCreatorcreateDomainCreator (const std::string &id, Kernel::IPropertyManager *pm, const std::string &workspacePropertyName, const unsigned int domainType) const
 Returns an initialized domain creator. More...
 
- Public Member Functions inherited from Mantid::Kernel::DynamicFactory< IDomainCreator >
virtual std::shared_ptr< IDomainCreatorcreate (const std::string &className) const
 Creates a new instance of the class with the given name. More...
 
virtual IDomainCreatorcreateUnwrapped (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

 DomainCreatorFactoryImpl ()=default
 Private Constructor for singleton class. More...
 
 DomainCreatorFactoryImpl (const DomainCreatorFactoryImpl &)=delete
 Disable copy and assignment operator. More...
 
DomainCreatorFactoryImploperator= (const DomainCreatorFactoryImpl &)=delete
 No copying. More...
 
 ~DomainCreatorFactoryImpl () override=default
 Private Destructor for singleton. More...
 

Friends

struct Mantid::Kernel::CreateUsingNew< DomainCreatorFactoryImpl >
 

Additional Inherited Members

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

Detailed Description

Constructs a DomainCreator object from a string.

Definition at line 30 of file DomainCreatorFactory.h.

Constructor & Destructor Documentation

◆ DomainCreatorFactoryImpl() [1/2]

Mantid::API::DomainCreatorFactoryImpl::DomainCreatorFactoryImpl ( )
privatedefault

Private Constructor for singleton class.

◆ DomainCreatorFactoryImpl() [2/2]

Mantid::API::DomainCreatorFactoryImpl::DomainCreatorFactoryImpl ( const DomainCreatorFactoryImpl )
privatedelete

Disable copy and assignment operator.

◆ ~DomainCreatorFactoryImpl()

Mantid::API::DomainCreatorFactoryImpl::~DomainCreatorFactoryImpl ( )
overrideprivatedefault

Private Destructor for singleton.

Member Function Documentation

◆ createDomainCreator()

IDomainCreator * Mantid::API::DomainCreatorFactoryImpl::createDomainCreator ( const std::string &  id,
Kernel::IPropertyManager pm,
const std::string &  workspacePropertyName,
const unsigned int  domainType 
) const

Returns an initialized domain creator.

Creates an initialized domain creator.

Parameters
id:: The id of the creator
pm:: A pointer to a property manager instance
workspacePropertyNameThe name of the workspace property
domainType
Returns
A pointer to the new object

Definition at line 22 of file DomainCreatorFactory.cpp.

References Mantid::Kernel::DynamicFactory< IDomainCreator >::createUnwrapped().

◆ operator=()

DomainCreatorFactoryImpl & Mantid::API::DomainCreatorFactoryImpl::operator= ( const DomainCreatorFactoryImpl )
privatedelete

No copying.

Friends And Related Function Documentation

◆ Mantid::Kernel::CreateUsingNew< DomainCreatorFactoryImpl >

Definition at line 33 of file DomainCreatorFactory.h.


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