Factory class to create reactor objects.
More...
#include <ReactorFactory.h>
Factory class to create reactor objects.
This class is mainly used via the newReactor3() function, for example:
shared_ptr<ReactorBase> r1 =
newReactor3(
"IdealGasReactor");
shared_ptr< ReactorBase > newReactor3(const string &model)
Create a Reactor object of the specified type.
Definition at line 22 of file ReactorFactory.h.
|
| void | deleteFactory () override |
| | Virtual abstract function that deletes the factory.
|
| |
| ReactorBase * | newReactor (const string &reactorType) |
| | Create a new reactor by type name.
|
| |
| ReactorBase * | 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< ReactorBase *(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.
|
| |
◆ ReactorFactory()
◆ factory()
◆ deleteFactory()
Virtual abstract function that deletes the factory.
This must be properly defined in child objects.
Implements FactoryBase.
Definition at line 63 of file ReactorFactory.cpp.
◆ newReactor()
Create a new reactor by type name.
- Parameters
-
| reactorType | the type to be created. |
- Deprecated:
- To be removed after Cantera 3.0; replaceable by newReactor3.
Definition at line 69 of file ReactorFactory.cpp.
◆ s_factory
◆ reactor_mutex
The documentation for this class was generated from the following files: