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

The ColumnFactory class is in charge of the creation of concrete instances of columns. More...

#include <ColumnFactory.h>

Inheritance diagram for Mantid::API::ColumnFactoryImpl:
Mantid::Kernel::DynamicFactory< Column >

Public Member Functions

 ColumnFactoryImpl (const ColumnFactoryImpl &)=delete
 
std::shared_ptr< Columncreate (const std::string &type) const override
 Creates an instance of a column. More...
 
ColumnFactoryImploperator= (const ColumnFactoryImpl &)=delete
 
- Public Member Functions inherited from Mantid::Kernel::DynamicFactory< Column >
virtual std::shared_ptr< Columncreate (const std::string &className) const
 Creates a new instance of the class with the given name. More...
 
virtual ColumncreateUnwrapped (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

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

Friends

struct Mantid::Kernel::CreateUsingNew< ColumnFactoryImpl >
 

Additional Inherited Members

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

Detailed Description

The ColumnFactory class is in charge of the creation of concrete instances of columns.

It inherits most of its implementation from the Dynamic Factory base class. It is implemented as a singleton class.

Author
Roman Tolchenov, Tessella Support Services plc
Date
31/10/2008

Definition at line 35 of file ColumnFactory.h.

Constructor & Destructor Documentation

◆ ColumnFactoryImpl() [1/2]

Mantid::API::ColumnFactoryImpl::ColumnFactoryImpl ( const ColumnFactoryImpl )
delete

◆ ColumnFactoryImpl() [2/2]

Mantid::API::ColumnFactoryImpl::ColumnFactoryImpl ( )
privatedefault

Private Constructor for singleton class.

◆ ~ColumnFactoryImpl()

Mantid::API::ColumnFactoryImpl::~ColumnFactoryImpl ( )
overrideprivatedefault

Private Destructor.

Member Function Documentation

◆ create()

std::shared_ptr< Column > Mantid::API::ColumnFactoryImpl::create ( const std::string &  type) const
overridevirtual

Creates an instance of a column.

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

Definition at line 13 of file ColumnFactory.cpp.

References Mantid::Kernel::DynamicFactory< Base, Comparator >::create().

◆ operator=()

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

Friends And Related Function Documentation

◆ Mantid::Kernel::CreateUsingNew< ColumnFactoryImpl >

Definition at line 40 of file ColumnFactory.h.


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