Factory class to create ReactorSurface objects.
More...
#include <ReactorFactory.h>
Factory class to create ReactorSurface objects.
This class is mainly used via the newReactorSurface() function, for example:
surf_phase, {reactor1, reactor2});
@tem
shared_ptr< ReactorSurface > newReactorSurface(shared_ptr< Solution > phase, const vector< shared_ptr< ReactorBase > > &reactors, bool clone, const string &name)
Create a ReactorSurface object with the specified contents and adjacent reactors participating in sur...
Definition at line 47 of file ReactorFactory.h.
|
| void | deleteFactory () override |
| | Virtual abstract function that deletes the factory.
|
| |
| ReactorSurface * | 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< ReactorSurface *(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.
|
| |
◆ ReactorSurfaceFactory()
◆ factory()
◆ deleteFactory()
Virtual abstract function that deletes the factory.
This must be properly defined in child objects.
Implements FactoryBase.
Definition at line 110 of file ReactorFactory.cpp.
◆ s_factory
◆ s_mutex
The documentation for this class was generated from the following files: