C API Documentation
|
Constructs new integrators. More...
#include <Integrator.h>
Public Member Functions | |
Integrator * | New (std::string name, ExecutableModel *m) const |
Constructs a new integrator given the name (e.g. cvode, gillespie) More... | |
void | registerSolver (IntegratorRegistrar *i) |
Registers a new integrator with the factory so that it can be constructed. More... | |
std::size_t | size () const |
std::string | name (std::size_t n) const |
std::string | hint (std::size_t n) const |
std::string | description (std::size_t n) const |
Static Public Member Functions | |
static IntegratorFactory & | getInstance () |
Returns the singleton instance of the integrator factory. More... | |
Constructs new integrators.
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.
|
static |
Returns the singleton instance of the integrator factory.
Integrator* rr::IntegratorFactory::New | ( | std::string | name, |
ExecutableModel * | m | ||
) | const |
Constructs a new integrator given the name (e.g. cvode, gillespie)
void rr::IntegratorFactory::registerSolver | ( | IntegratorRegistrar * | i | ) |
Registers a new integrator with the factory so that it can be constructed.
Should be called at startup for new integrators.