DUNE-FEM (unstable)

parametertree.hh
1#ifndef DUNE_FEM_IO_PARAMETER_PARAMETERTREE_HH
2#define DUNE_FEM_IO_PARAMETER_PARAMETERTREE_HH
3
5
6#include <dune/fem/io/parameter/reader.hh>
7
8namespace Dune
9{
10
11 namespace Fem
12 {
13
14 // parameterReader
15 // ---------------
16
17 inline static ParameterReader parameterReader ( const ParameterTree &parameterTree )
18 {
19 return ParameterReader( [ &parameterTree ] ( const std::string &key, const std::string *defaultValue ) {
20 return (parameterTree.hasKey( key ) ? &parameterTree[ key ] : defaultValue);
21 } );
22 }
23
24 } // namespace Fem
25
26} // namespace Dune
27
28#endif // #ifndef DUNE_FEM_IO_PARAMETER_PARAMETERTREE_HH
A hierarchical structure of string parameters.
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 27, 22:29, 2024)