ReactionRateFactory.h Source File#
ReactionRateFactory.h
Go to the documentation of this file.
File contains the FactoryBase class declarations.
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
Factory class that supports registering functions to create objects.
Definition FactoryBase.h:69
Factory class to construct reaction rate calculators.
Definition ReactionRateFactory.h:58
static ReactionRateFactory * s_factory
Pointer to the single instance of the factory.
Definition ReactionRateFactory.h:71
ReactionRateFactory()
default constructor, which is defined as private
Definition ReactionRateFactory.cpp:26
void deleteFactory() override
Virtual abstract function that deletes the factory.
Definition ReactionRateFactory.cpp:111
static std::mutex rate_mutex
Mutex for use when calling the factory.
Definition ReactionRateFactory.h:77
static ReactionRateFactory * factory()
Return a pointer to the factory.
Definition ReactionRateFactory.cpp:103
shared_ptr< ReactionRate > newReactionRate(const string &type)
Create a new empty ReactionRate object.
Definition ReactionRateFactory.cpp:117
Generated by