A factory class for creating ExtensionManager objects.
More...
#include <ExtensionManagerFactory.h>
A factory class for creating ExtensionManager objects.
- Since
- New in Cantera 3.0
Definition at line 18 of file ExtensionManagerFactory.h.
|
| void | deleteFactory () override |
| | Delete the static instance of this factory.
|
| |
| ExtensionManager * | 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< ExtensionManager *(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.
|
| |
◆ ExtensionManagerFactory()
Private constructor prevents direct usage.
◆ build()
◆ deleteFactory()
◆ factory()
Static function that returns the static instance of the factory, creating it if necessary.
Definition at line 16 of file ExtensionManagerFactory.cpp.
◆ s_factory
◆ s_mutex
The documentation for this class was generated from the following files: