dune-fem 2.8.0
|
#include <dune/fem/io/parameter/reader.hh>
Public Types | |
typedef BasicParameterReader< Parameter > | ThisType |
Public Member Functions | |
BasicParameterReader (Parameter parameter=Parameter()) | |
bool | exists (const std::string &key) const |
check, whether a parameter is defined | |
template<class T > | |
void | get (const std::string &key, T &value) const |
get mandatory parameter | |
template<class T > | |
void | get (const std::string &key, const T &defaultValue, T &value) const |
get optional parameter | |
void | get (const std::string &key, const char *defaultValue, std::string &value) const |
get optional parameter (special case for string) | |
template<class T , class Validator > | |
void | getValid (const std::string &key, const Validator &validator, T &value) const |
get mandatory parameter | |
template<class T , class Validator > | |
void | getValid (const std::string &key, const T &defaultValue, const Validator &validator, T &value) const |
get optional parameter | |
template<class T > | |
T | getValue (const std::string &key) const |
get mandatory parameter | |
template<class T > | |
T | getValue (const std::string &key, const T &defaultValue) const |
get optional parameter | |
template<class T , class Validator > | |
T | getValidValue (const std::string &key, const Validator &validator) const |
get optional parameter | |
template<class T , class Validator > | |
T | getValidValue (const std::string &key, const T &defaultValue, const Validator &validator) const |
get optional parameter | |
template<int n> | |
int | getEnum (const std::string &key, const std::string(&values)[n]) const |
template<int n> | |
int | getEnum (const std::string &key, const std::string(&values)[n], int defaultValue) const |
int | getEnum (const std::string &key, const std::vector< std::string > &values) const |
int | getEnum (const std::string &key, const std::vector< std::string > &values, int defaultValue) const |
ThisType * | clone () const |
Parameter | parameter () |
const Parameter | parameter () const |
void | reset () |
Protected Attributes | |
Parameter | parameter_ |
typedef BasicParameterReader<Parameter> Dune::Fem::BasicParameterReader< Parameter >::ThisType |
|
inlineexplicit |
|
inline |
|
inline |
check, whether a parameter is defined
[in] | key | name of the parameter to check |
|
inline |
get optional parameter (special case for string)
[in] | key | name of the parameter to get |
[in] | defaultValue | default value for this parameter |
[out] | value | value of the parameter |
|
inline |
get optional parameter
[in] | key | name of the parameter to get |
[in] | defaultValue | default value for this parameter |
[out] | value | value of the parameter |
|
inline |
get mandatory parameter
[in] | key | name of the parameter to get |
[out] | value | value of the parameter |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
get optional parameter
[in] | key | name of the parameter to get |
[in] | defaultValue | default value for this parameter |
[in] | validator | validator for the parameter value |
[out] | value | value of the parameter |
|
inline |
get mandatory parameter
[in] | key | name of the parameter to get |
[in] | validator | validator for the parameter value |
[out] | value | value of the parameter |
|
inline |
get optional parameter
[in] | key | name of the parameter to get |
[in] | defaultValue | default value for this parameter |
[in] | validator | validator for the parameter value |
|
inline |
get optional parameter
[in] | key | name of the parameter to get |
[in] | validator | validator for the parameter value |
|
inline |
get mandatory parameter
[in] | key | name of the parameter to get |
|
inline |
get optional parameter
[in] | key | name of the parameter to get |
[in] | defaultValue | default value for this parameter |
|
inline |
|
inline |
|
inline |
|
protected |