Factory class to create FlowDevice objects.
More...
#include <FlowDeviceFactory.h>
Factory class to create FlowDevice objects.
This class is mainly used via the newFlowDevice3() function, for example:
shared_ptr< FlowDevice > newFlowDevice3(const string &model)
Create a FlowDevice object of the specified type.
Definition at line 22 of file FlowDeviceFactory.h.
|
void | deleteFactory () override |
| Virtual abstract function that deletes the factory.
|
|
FlowDevice * | newFlowDevice (const string &flowDeviceType) |
| Create a new flow device by type name.
|
|
FlowDevice * | create (const string &name, Args... args) |
| Create an object using the object construction function corresponding to "name" and the provided constructor arguments.
|
|
void | reg (const string &name, function< FlowDevice *(Args...)> f) |
| Register a new object construction function.
|
|
void | addAlias (const string &original, const string &alias) |
| Add an alias for an existing registered type.
|
|
string | canonicalize (const string &name) |
| Get the canonical name registered for a type.
|
|
bool | exists (const string &name) const |
| Returns true if name is registered with this factory.
|
|
virtual | ~FactoryBase () |
| destructor
|
|
|
void | addDeprecatedAlias (const string &original, const string &alias) |
| Add a deprecated alias for an existing registered type.
|
|
| FactoryBase () |
| Constructor.
|
|
virtual void | deleteFactory ()=0 |
| Virtual abstract function that deletes the factory.
|
|
◆ FlowDeviceFactory()
◆ factory()
◆ deleteFactory()
Virtual abstract function that deletes the factory.
This must be properly defined in child objects.
Implements FactoryBase.
Definition at line 30 of file FlowDeviceFactory.cpp.
◆ newFlowDevice()
FlowDevice * newFlowDevice |
( |
const string & |
flowDeviceType | ) |
|
Create a new flow device by type name.
- Parameters
-
flowDeviceType | the type to be created. |
- Deprecated:
- To be removed after Cantera 3.0; replaceable by newFlowDevice3.
Definition at line 37 of file FlowDeviceFactory.cpp.
◆ s_factory
◆ flowDevice_mutex
std::mutex flowDevice_mutex |
|
staticprivate |
The documentation for this class was generated from the following files: