Mantid
|
MDUnitFactory : Abstract type. More...
#include <MDUnitFactory.h>
Private Member Functions | |
bool | canInterpret (const std::string &unitString) const override=0 |
Indicate an ability to intepret the string. More... | |
MDUnit * | createRaw (const std::string &unitString) const override=0 |
Create the product. More... | |
Additional Inherited Members | |
Public Member Functions inherited from Mantid::Kernel::ChainableFactory< MDUnitFactory, MDUnit, std::string > | |
std::unique_ptr< MDUnit > | create (const std::string &argument) const |
Factory method wrapper. More... | |
Public Member Functions inherited from Mantid::Kernel::Chainable< ChainableType > | |
bool | hasSuccessor () const |
template<typename T > | |
Chainable & | setSuccessor (T &&successor) |
Set the successor. More... | |
virtual | ~Chainable ()=0 |
Keep our destructor pure virtual, but require an implementation. More... | |
Protected Member Functions inherited from Mantid::Kernel::Chainable< ChainableType > | |
virtual void | checkSuccessor () const |
Provide option for derived classes to check successor and throw if bad. More... | |
Protected Attributes inherited from Mantid::Kernel::Chainable< ChainableType > | |
std::unique_ptr< ChainableType > | m_successor |
Successor factory boost::optional<std::unique_ptr<ChainableType>> m_successor;. More... | |
MDUnitFactory : Abstract type.
Factory method with chain of reponsibility succession for creating MDUnits.
Definition at line 21 of file MDUnitFactory.h.
|
overrideprivatepure virtual |
Indicate an ability to intepret the string.
Implements Mantid::Kernel::ChainableFactory< MDUnitFactory, MDUnit, std::string >.
Implemented in Mantid::Kernel::LabelUnitFactory, Mantid::Kernel::InverseAngstromsUnitFactory, and Mantid::Kernel::ReciprocalLatticeUnitFactory.
|
overrideprivatepure virtual |
Create the product.
Implements Mantid::Kernel::ChainableFactory< MDUnitFactory, MDUnit, std::string >.
Implemented in Mantid::Kernel::LabelUnitFactory, Mantid::Kernel::InverseAngstromsUnitFactory, and Mantid::Kernel::ReciprocalLatticeUnitFactory.