11#ifndef CT_NEWREACTION_H
12#define CT_NEWREACTION_H
63class ReactionFactoryXML :
public Factory<Reaction, const XML_Node&>
71 static ReactionFactoryXML* factory() {
72 std::unique_lock<std::mutex> lock(reaction_mutex);
74 s_factory =
new ReactionFactoryXML;
79 virtual void deleteFactory() {
80 std::unique_lock<std::mutex> lock(reaction_mutex);
87 static ReactionFactoryXML* s_factory;
93 static std::mutex reaction_mutex;
File contains the FactoryBase class declarations.
Factory class that supports registering functions to create objects.
Factory class to construct reaction function calculators.
ReactionFactory()
default constructor, which is defined as private
static std::mutex reaction_mutex
Mutex for use when calling the factory.
static ReactionFactory * s_factory
Pointer to the single instance of the factory.
static ReactionFactory * factory()
Return a pointer to the factory.
virtual void deleteFactory()
Virtual abstract function that deletes the factory.
Namespace for the Cantera kernel.