|
Cantera
3.0.0
|
A factory class for creating ExtensionManager objects. More...
#include <ExtensionManagerFactory.h>
A factory class for creating ExtensionManager objects.
Definition at line 18 of file ExtensionManagerFactory.h.
Public Member Functions | |
| void | deleteFactory () override |
| Delete the static instance of this factory. | |
Public Member Functions inherited from Factory< ExtensionManager > | |
| 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. | |
Public Member Functions inherited from FactoryBase | |
| virtual | ~FactoryBase () |
| destructor | |
Static Public Member Functions | |
| static shared_ptr< ExtensionManager > | build (const string &extensionType) |
| Create a new ExtensionManager. | |
| static ExtensionManagerFactory & | factory () |
| Static function that returns the static instance of the factory, creating it if necessary. | |
Static Public Member Functions inherited from FactoryBase | |
| static void | deleteFactories () |
| static function that deletes all factories in the internal registry maintained in a static variable | |
Private Member Functions | |
| ExtensionManagerFactory ()=default | |
| Private constructor prevents direct usage. | |
Static Private Attributes | |
| static ExtensionManagerFactory * | s_factory = 0 |
| static member of the single factory instance | |
| static std::mutex | s_mutex |
| Decl for locking mutex for thermo factory singleton. | |
Additional Inherited Members | |
Protected Member Functions inherited from Factory< ExtensionManager > | |
| void | addDeprecatedAlias (const string &original, const string &alias) |
| Add a deprecated alias for an existing registered type. | |
Protected Member Functions inherited from FactoryBase | |
| FactoryBase () | |
| Constructor. | |
|
privatedefault |
Private constructor prevents direct usage.
|
inlinestatic |
Create a new ExtensionManager.
Definition at line 22 of file ExtensionManagerFactory.h.
|
overridevirtual |
Delete the static instance of this factory.
Implements FactoryBase.
Definition at line 25 of file ExtensionManagerFactory.cpp.
|
static |
Static function that returns the static instance of the factory, creating it if necessary.
Definition at line 16 of file ExtensionManagerFactory.cpp.
|
staticprivate |
static member of the single factory instance
Definition at line 35 of file ExtensionManagerFactory.h.
|
staticprivate |
Decl for locking mutex for thermo factory singleton.
Definition at line 41 of file ExtensionManagerFactory.h.