Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
#include <alsfvm/config/GenericParameters.hpp>
Public Member Functions | |
GenericParameters (const boost::property_tree::ptree &tree) | |
double | getDouble (const std::string &key) const |
Gets a double parameter with key key. More... | |
int | getInteger (const std::string &key) const |
Gets an integer parameter with key key. More... | |
double | getDouble (const std::string &key, double defaultValue) const |
int | getInteger (const std::string &key, int defaultValue) const |
Base class to hold parameters through a boost property tree. To be passed around to other classes.
alsfvm::config::GenericParameters::GenericParameters | ( | const boost::property_tree::ptree & | tree | ) |
double alsfvm::config::GenericParameters::getDouble | ( | const std::string & | key | ) | const |
Gets a double parameter with key key.
double alsfvm::config::GenericParameters::getDouble | ( | const std::string & | key, |
double | defaultValue | ||
) | const |
Gets a double parameter with key key,
if they key does not exist, returns defaultValue
int alsfvm::config::GenericParameters::getInteger | ( | const std::string & | key | ) | const |
Gets an integer parameter with key key.
int alsfvm::config::GenericParameters::getInteger | ( | const std::string & | key, |
int | defaultValue | ||
) | const |
Gets an integer parameter with key key
if they key does not exist, returns defaultValue