|
dune-common 2.12-git
|
Loading...
Searching...
No Matches
parametertree.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
A free function to provide the demangled class name of a given object or type as a string.
A few common exception classes.
Implements a vector constructed from a given type representing a field and a compile-time given size.
const char * what() const noexcept override
output internal message buffer
Definition exceptions.cc:37
STL namespace.
std::map< std::string, ParameterTree > subs_
Definition parametertree.hh:221
static std::string rtrim(const std::string &s)
Definition parametertree.cc:213
std::string get(const std::string &key, const std::string &defaultValue) const
get value as string
Definition parametertree.cc:188
static std::string ltrim(const std::string &s)
Definition parametertree.cc:204
void report(std::ostream &stream=std::cout, const std::string &prefix="") const
print distinct substructure to stream
Definition parametertree.cc:32
std::vector< std::string > KeyVector
storage for key lists
Definition parametertree.hh:50
static void parseRange(const std::string &str, Iterator it, const Iterator &end)
Definition parametertree.hh:229
ParameterTree()
Create new empty ParameterTree.
Definition parametertree.cc:20
std::string & operator[](const std::string &key)
get value reference for key
Definition parametertree.cc:153
ParameterTree & sub(const std::string &sub)
get substructure by name
Definition parametertree.cc:106
bool hasKey(const std::string &key) const
test for key
Definition parametertree.cc:51
const KeyVector & getSubKeys() const
get substructure keys
Definition parametertree.cc:243
T get(const std::string &key) const
Get value.
Definition parametertree.hh:177
bool hasSub(const std::string &sub) const
test for substructure
Definition parametertree.cc:79
std::map< std::string, std::string > values_
Definition parametertree.hh:220
T get(const std::string &key, const T &defaultValue) const
get value converted to a certain type
Definition parametertree.hh:161
static std::vector< std::string > split(const std::string &s)
Definition parametertree.cc:222
const KeyVector & getValueKeys() const
get value keys
Definition parametertree.cc:238
static std::basic_string< char, traits, Allocator > parse(const std::string &str)
Definition parametertree.hh:279
static bool parse(const std::string &str)
Definition parametertree.hh:296
char operator()(char c)
Definition parametertree.hh:289
static FieldVector< T, n > parse(const std::string &str)
Definition parametertree.hh:314
static std::array< T, n > parse(const std::string &str)
Definition parametertree.hh:324
static std::bitset< n > parse(const std::string &str)
Definition parametertree.hh:334
static std::vector< T, A > parse(const std::string &str)
Definition parametertree.hh:350
T begin(T... args)
T classic(T... args)
T end(T... args)
T eof(T... args)
T fail(T... args)
T imbue(T... args)
T push_back(T... args)
T transform(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8