GRINS-0.8.0
|
Track what FEVariablesBase objects have been created. More...
#include <variable_warehouse.h>
Public Member Functions | |
VariableWarehouse () | |
~VariableWarehouse () | |
Static Public Member Functions | |
static bool | is_registered (const std::string &var_name) |
Check if variable is registered. More... | |
static void | check_and_register_variable (const std::string &var_name, SharedPtr< FEVariablesBase > &variable) |
First check if var_name is registered and then register. More... | |
static void | register_variable (const std::string &var_name, SharedPtr< FEVariablesBase > &variable) |
static SharedPtr< FEVariablesBase > | get_variable_ptr (const std::string &var_name) |
static FEVariablesBase & | get_variable (const std::string &var_name) |
template<typename DerivedType > | |
static DerivedType & | get_variable_subclass (const std::string &var_name) |
static void | clear () |
Clears the var_map() More... | |
Static Protected Member Functions | |
static std::map< std::string, SharedPtr< FEVariablesBase > > & | var_map () |
Track what FEVariablesBase objects have been created.
Several modules need to interact with the Variables in use. So, this object creates a place to register a Variable class.
Definition at line 49 of file variable_warehouse.h.
|
inline |
Definition at line 52 of file variable_warehouse.h.
|
inline |
Definition at line 54 of file variable_warehouse.h.
|
inlinestatic |
First check if var_name is registered and then register.
Use this API if you may be attempting to register the same variable more than once.
Definition at line 93 of file variable_warehouse.h.
References is_registered(), and register_variable().
|
inlinestatic |
Clears the var_map()
Definition at line 76 of file variable_warehouse.h.
References var_map().
Referenced by GRINSTesting::SpectroscopicAbsorptionTest::tearDown(), GRINSTesting::IntegratedFunctionTest::tearDown(), GRINSTesting::VariablesTest::test_var_constraint(), GRINSTesting::VariablesTest::test_variable_arbitrary_names(), and GRINSTesting::VariablesTest::test_variable_builder().
|
inlinestatic |
Definition at line 111 of file variable_warehouse.h.
References get_variable_ptr().
Referenced by GRINS::DefaultBCBuilder::build_axisymmetric_bcs(), GRINS::DefaultBCBuilder::build_bcs_by_var_section(), GRINS::OldStyleBCBuilder::determine_variable_group(), GRINS::CatalyticWallNeumannBCFactoryCommon< ImplType >::extract_temp_var(), get_variable_subclass(), GRINSTesting::VariablesTest::test_all_variables(), and GRINSTesting::VariablesTest::test_var_constraint().
|
static |
Definition at line 38 of file variable_warehouse.C.
References is_registered(), and var_map().
Referenced by get_variable().
|
inlinestatic |
Definition at line 119 of file variable_warehouse.h.
References get_variable().
|
inlinestatic |
Check if variable is registered.
Definition at line 86 of file variable_warehouse.h.
References var_map().
Referenced by check_and_register_variable(), get_variable_ptr(), and register_variable().
|
inlinestatic |
Definition at line 101 of file variable_warehouse.h.
References is_registered(), and var_map().
Referenced by GRINS::VariableBuilder::add_variable_to_warehouse(), and check_and_register_variable().
|
staticprotected |
Definition at line 32 of file variable_warehouse.C.
Referenced by clear(), get_variable_ptr(), is_registered(), and register_variable().