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;
52 f = ReactorFactory::factory();
55 "The `ReactorFactory*` argument to this function is deprecated and" 56 " will be removed after Cantera 2.3.");
58 return f->newReactor(model);
void warn_deprecated(const std::string &method, const std::string &extra)
Print a warning indicating that method is deprecated.
ReactorBase * newReactor(const std::string &model, ReactorFactory *f=0)
Create a Reactor object of the specified type.
Base class for stirred reactors.
Namespace for the Cantera kernel.
File contains the FactoryBase class declarations.