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
|
|
|
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.
|
|
◆ KineticsFactory()
◆ factory()
◆ 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
◆ kinetics_mutex
std::mutex kinetics_mutex |
|
staticprivate |
The documentation for this class was generated from the following files: