Factory for kinetics managers.
More...
#include <KineticsFactory.h>
Factory for kinetics managers.
Definition at line 21 of file KineticsFactory.h.
|
| void | deleteFactory () override |
| | Virtual abstract function that deletes the factory.
|
| Kinetics * | newKinetics (const string &model) |
| | Return a new, empty kinetics manager.
|
| Kinetics * | 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< Kinetics *(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
|
|
| static KineticsFactory * | factory () |
| static void | deleteFactories () |
| | static function that deletes all factories in the internal registry maintained in a static variable
|
|
| void | addDeprecatedAlias (const string &original, const string &alias) |
| | Add a deprecated alias for an existing registered type.
|
| | FactoryBase () |
| | Constructor.
|
◆ KineticsFactory()
◆ factory()
| KineticsFactory * factory |
( |
| ) |
|
|
static |
◆ deleteFactory()
Virtual abstract function that deletes the factory.
This must be properly defined in child objects.
Implements FactoryBase.
Definition at line 48 of file KineticsFactory.cpp.
◆ newKinetics()
| Kinetics * newKinetics |
( |
const string & | model | ) |
|
◆ s_factory
| KineticsFactory * s_factory = 0 |
|
staticprivate |
◆ kinetics_mutex
| std::mutex kinetics_mutex |
|
staticprivate |
The documentation for this class was generated from the following files: