|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
Dune::Fem::BasicParameterReader< Parameter > Struct Template Reference
#include <dune/fem/io/parameter/reader.hh>
Inheritance diagram for Dune::Fem::BasicParameterReader< Parameter >:

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_ |
Member Typedef Documentation
◆ ThisType
template<class Parameter >
| typedef BasicParameterReader<Parameter> Dune::Fem::BasicParameterReader< Parameter >::ThisType |
Constructor & Destructor Documentation
◆ BasicParameterReader()
template<class Parameter >
|
inlineexplicit |
Member Function Documentation
◆ clone()
template<class Parameter >
|
inline |
◆ exists()
template<class Parameter >
|
inline |
check, whether a parameter is defined
- Parameters
-
[in] key name of the parameter to check
- Returns
- true, if the parameter is found, false otherwise
◆ get() [1/3]
template<class Parameter >
|
inline |
get optional parameter (special case for string)
- Note
- This method returns a default value, if the parameter cannot be found.
- Parameters
-
[in] key name of the parameter to get [in] defaultValue default value for this parameter [out] value value of the parameter
◆ get() [2/3]
template<class Parameter >
template<class T >
|
inline |
get optional parameter
- Note
- This method returns a default value, if the parameter cannot be found.
- Parameters
-
[in] key name of the parameter to get [in] defaultValue default value for this parameter [out] value value of the parameter
◆ get() [3/3]
template<class Parameter >
template<class T >
|
inline |
get mandatory parameter
- Note
- This method throws an exception, if the parameter cannot be found.
- Parameters
-
[in] key name of the parameter to get [out] value value of the parameter
◆ getEnum() [1/4]
template<class Parameter >
template<int n>
|
inline |
◆ getEnum() [2/4]
template<class Parameter >
template<int n>
|
inline |
◆ getEnum() [3/4]
template<class Parameter >
|
inline |
◆ getEnum() [4/4]
template<class Parameter >
|
inline |
◆ getValid() [1/2]
template<class Parameter >
template<class T , class Validator >
|
inline |
get optional parameter
- Note
- This method returns a default value, if the parameter cannot be found.
- Parameters
-
[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
◆ getValid() [2/2]
template<class Parameter >
template<class T , class Validator >
|
inline |
get mandatory parameter
- Note
- This method throws an exception, if the parameter cannot be found.
- Parameters
-
[in] key name of the parameter to get [in] validator validator for the parameter value [out] value value of the parameter
◆ getValidValue() [1/2]
template<class Parameter >
template<class T , class Validator >
|
inline |
get optional parameter
- Note
- This method returns a default value, if the parameter cannot be found.
- Parameters
-
[in] key name of the parameter to get [in] defaultValue default value for this parameter [in] validator validator for the parameter value
- Returns
- value of the parameter
◆ getValidValue() [2/2]
template<class Parameter >
template<class T , class Validator >
|
inline |
get optional parameter
- Note
- This method returns a default value, if the parameter cannot be found.
- Parameters
-
[in] key name of the parameter to get [in] validator validator for the parameter value
- Returns
- value of the parameter
◆ getValue() [1/2]
template<class Parameter >
template<class T >
|
inline |
get mandatory parameter
- Note
- This method throws an exception, if the parameter cannot be found.
- Parameters
-
[in] key name of the parameter to get
- Returns
- value of the parameter
◆ getValue() [2/2]
template<class Parameter >
template<class T >
|
inline |
get optional parameter
- Note
- This method returns a default value, if the parameter cannot be found.
- Parameters
-
[in] key name of the parameter to get [in] defaultValue default value for this parameter
- Returns
- value of the parameter
◆ parameter() [1/2]
template<class Parameter >
|
inline |
◆ parameter() [2/2]
template<class Parameter >
|
inline |
◆ reset()
template<class Parameter >
|
inline |
Member Data Documentation
◆ parameter_
template<class Parameter >
|
protected |
The documentation for this struct was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8