|
IFEM
90A354
|
A key-value store for settings. More...
#include <LinSolParams.h>


Public Member Functions | |
| void | addValue (const std::string &key, const std::string &value) |
| Add a value to the store. More... | |
| std::string | getStringValue (const std::string &key) const |
| Obtain a value as a string. More... | |
| int | getIntValue (const std::string &key) const |
| Obtain a value as an integer. More... | |
| double | getDoubleValue (const std::string &key) const |
| Obtain a value as an double. More... | |
| bool | hasValue (const std::string &key) const |
| Checks if the store holds a value for a key. More... | |
Protected Attributes | |
| std::map< std::string, std::string > | values |
| Map of key-value pairs. | |
A key-value store for settings.
| void SettingMap::addValue | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
Add a value to the store.
| [in] | key | The key |
| [in] | value | The value |
References values.
Referenced by LinSolParams::BlockParams::BlockParams(), LinSolParams::LinSolParams(), LinSolParams::BlockParams::read(), and LinSolParams::read().
| double SettingMap::getDoubleValue | ( | const std::string & | key | ) | const |
Obtain a value as an double.
| [in] | key | The key |
References values.
Referenced by PETScSolParams::getDoubleValue(), PETScSchurPC::PETScSchurPC(), and setupWithPreType().
| int SettingMap::getIntValue | ( | const std::string & | key | ) | const |
Obtain a value as an integer.
| [in] | key | The key |
References values.
Referenced by PETScSolParams::getIntValue(), ISTLMatrix::handleSolverReset(), PETScSchurPC::PETScSchurPC(), LinSolParams::BlockParams::read(), PETScSolParams::setupAdditiveSchwarz(), setupAMG(), setupAMG2_full(), PETScSolParams::setupPC(), ISTLSolParams::setupPCInternal(), PETScSolParams::setupSmoothers(), and setupWithPreType().
| std::string SettingMap::getStringValue | ( | const std::string & | key | ) | const |
Obtain a value as a string.
| [in] | key | The key |
References values.
Referenced by condSetup(), PETScSolParams::getStringValue(), ISTLMatrix::handleSolverReset(), PETScSchurPC::PETScSchurPC(), LinSolParams::BlockParams::read(), PETScMatrix::setParameters(), setupAMG2(), setupAMG2_smoother(), PETScSolParams::setupCoarseSolver(), ISTLSolParams::setupPC(), PETScSolParams::setupPC(), ISTLSolParams::setupPCInternal(), PETScSolParams::setupSmoothers(), and setupWithPreType().
| bool SettingMap::hasValue | ( | const std::string & | key | ) | const |
Checks if the store holds a value for a key.
| [in] | key | The key |
References values.
Referenced by condSetup(), ISTLMatrix::handleSolverReset(), PETScSolParams::hasValue(), LinSolParams::BlockParams::read(), setupAMG(), setupAMG2_full(), and PETScSolParams::setupPC().