ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_FireEngineRegistry.cpp File Reference
Include dependency graph for ERF_FireEngineRegistry.cpp:

Typedefs

using FireRegistry = SurfaceEngineRegistry< FireEngine, FireCouplingParams >
 

Functions

bool register_fire_engine (const std::string &name, FireEngineCreator creator)
 Add an engine to the registry; aborts on a name registered twice. More...
 
std::vector< std::string > fire_engine_names ()
 Names erf.fire.engine accepts, sorted; empty when no engine is compiled in. More...
 
std::unique_ptr< FireEngine > make_fire_engine (const std::string &name, const FireCouplingParams &params)
 The engine erf.fire.engine names, or nullptr when no engine has that name. More...
 

Typedef Documentation

◆ FireRegistry

Function Documentation

◆ fire_engine_names()

std::vector<std::string> fire_engine_names ( )

Names erf.fire.engine accepts, sorted; empty when no engine is compiled in.

16 {
17  return FireRegistry::names();
18 }
static std::vector< std::string > names()
The registered names, sorted.
Definition: ERF_SurfaceEngineRegistry.H:49

Referenced by FireCouplingParams::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_fire_engine()

std::unique_ptr<FireEngine> make_fire_engine ( const std::string &  name,
const FireCouplingParams &  params 
)

The engine erf.fire.engine names, or nullptr when no engine has that name.

22 {
23  return FireRegistry::make(name, params);
24 }
std::string name
Definition: ERF_Plotfile2DCatalog.cpp:139
static std::unique_ptr< Engine > make(const std::string &name, const Params &params)
The engine registered under name, or nullptr.
Definition: ERF_SurfaceEngineRegistry.H:57

Referenced by ERF::initializeFire().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ register_fire_engine()

bool register_fire_engine ( const std::string &  name,
FireEngineCreator  creator 
)

Add an engine to the registry; aborts on a name registered twice.

Called by ERF_REGISTER_FIRE_ENGINE; returns true so the macro can hold the result in a static variable.

10 {
11  return FireRegistry::add(fire_coupling_names(), name, std::move(creator));
12 }
const SurfaceCouplingNames & fire_coupling_names()
The fire coupling's names: erf.fire.<key>, "[FIRE]", "fire grid".
Definition: ERF_FireGrid.H:25
static bool add(const SurfaceCouplingNames &names, const std::string &name, Creator creator)
Add an engine; aborts on an empty name or a name registered twice.
Definition: ERF_SurfaceEngineRegistry.H:33
Here is the call graph for this function: