6#ifndef REACTOR_FACTORY_H
7#define REACTOR_FACTORY_H
28 std::unique_lock<std::mutex> lock(reactor_mutex);
36 std::unique_lock<std::mutex> lock(reactor_mutex);
49 static std::mutex reactor_mutex;
57 return ReactorFactory::factory()->newReactor(model);
File contains the FactoryBase class declarations.
Factory class that supports registering functions to create objects.
Base class for stirred reactors.
Factory class to create reactor objects.
virtual ReactorBase * newReactor(const std::string &reactorType)
Create a new reactor by type name.
virtual void deleteFactory()
Virtual abstract function that deletes the factory.
ReactorBase * newReactor(const std::string &model)
Create a Reactor object of the specified type.
Namespace for the Cantera kernel.