6 #ifndef REACTOR_FACTORY_H 7 #define REACTOR_FACTORY_H 15 class ReactorFactory :
public Factory<ReactorBase>
18 static ReactorFactory* factory() {
19 std::unique_lock<std::mutex> lock(reactor_mutex);
21 s_factory =
new ReactorFactory;
26 virtual void deleteFactory() {
27 std::unique_lock<std::mutex> lock(reactor_mutex);
37 virtual ReactorBase*
newReactor(
const std::string& reactorType);
40 static ReactorFactory* s_factory;
41 static std::mutex reactor_mutex;
48 return ReactorFactory::factory()->newReactor(model);
Base class for stirred reactors.
ReactorBase * newReactor(const std::string &model)
Create a Reactor object of the specified type.
Namespace for the Cantera kernel.
File contains the FactoryBase class declarations.