roadrunner  2.6.0
Fast simulator for SBML models
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
rr::RegistrationFactory Class Reference

Constructs new integrators. More...

#include <RegistrationFactory.h>

Inheritance diagram for rr::RegistrationFactory:
rr::IntegratorFactory rr::SensitivitySolverFactory rr::SteadyStateSolverFactory

Public Member Functions

SolverNew (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
 

Static Public Member Functions

template<class FactoryType >
static FactoryType & getInstance (std::mutex &mutex)
 Returns the singleton instance of the integrator factory. More...
 

Protected Member Functions

 RegistrationFactory ()=default
 Prevents external instantiation. More...
 

Protected Attributes

RegistrableVector registrars
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RegistrationFactory()

rr::RegistrationFactory::RegistrationFactory ( )
protecteddefault

Prevents external instantiation.

Author
JKM, WBC

Member Function Documentation

◆ 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()

Solver * rr::RegistrationFactory::New ( const std::string &  name,
ExecutableModel m 
) const

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: