Constructs new integrators.
More...
#include <RegistrationFactory.h>
|
Solver * | New (const std::string &name, ExecutableModel *m) const |
| Constructs a new integrator given the name (e.g. cvode, gillespie) More...
|
|
virtual void | registerSolver (Registrable *i) |
| Registers a new integrator with the factory so that it can be constructed. More...
|
|
virtual std::size_t | size () const |
|
virtual std::string | name (std::size_t n) const |
|
virtual std::string | hint (std::size_t n) const |
|
virtual std::string | description (std::size_t n) const |
|
|
template<class FactoryType > |
static FactoryType & | getInstance (std::mutex &mutex) |
| Returns the singleton instance of the integrator factory. More...
|
|
|
RegistrableVector | registrars |
|
Constructs new integrators.
- Author
- JKM, WBC
Implements the factory and singleton patterns. Constructs a new integrator given the name (e.g. cvode, gillespie) and returns a base pointer to rr::Integrator.
◆ RegistrationFactory()
rr::RegistrationFactory::RegistrationFactory |
( |
| ) |
|
|
protecteddefault |
Prevents external instantiation.
- Author
- JKM, WBC
◆ getInstance()
template<class FactoryType >
static FactoryType& rr::RegistrationFactory::getInstance |
( |
std::mutex & |
mutex | ) |
|
|
inlinestatic |
Returns the singleton instance of the integrator factory.
- Author
- JKM, WBC
◆ New()
Constructs a new integrator given the name (e.g. cvode, gillespie)
- Author
- JKM, WBC
◆ registerSolver()
void rr::RegistrationFactory::registerSolver |
( |
Registrable * |
i | ) |
|
|
virtual |
Registers a new integrator with the factory so that it can be constructed.
- Author
- JKM, WBC
Should be called at startup for new integrators.
The documentation for this class was generated from the following files: