|
dune-common 2.9.1
|
Loading...
Searching...
No Matches
parametertree.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright (C) 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:218
static std::string rtrim(const std::string &s)
Definition parametertree.cc:210
std::string get(const std::string &key, const std::string &defaultValue) const
get value as string
Definition parametertree.cc:185
static std::string ltrim(const std::string &s)
Definition parametertree.cc:201
void report(std::ostream &stream=std::cout, const std::string &prefix="") const
print distinct substructure to stream
Definition parametertree.cc:29
std::vector< std::string > KeyVector
storage for key lists
Definition parametertree.hh:47
static void parseRange(const std::string &str, Iterator it, const Iterator &end)
Definition parametertree.hh:226
ParameterTree()
Create new empty ParameterTree.
Definition parametertree.cc:24
std::string & operator[](const std::string &key)
get value reference for key
Definition parametertree.cc:150
ParameterTree & sub(const std::string &sub)
get substructure by name
Definition parametertree.cc:103
bool hasKey(const std::string &key) const
test for key
Definition parametertree.cc:48
const KeyVector & getSubKeys() const
get substructure keys
Definition parametertree.cc:240
T get(const std::string &key) const
Get value.
Definition parametertree.hh:174
bool hasSub(const std::string &sub) const
test for substructure
Definition parametertree.cc:76
std::map< std::string, std::string > values_
Definition parametertree.hh:217
T get(const std::string &key, const T &defaultValue) const
get value converted to a certain type
Definition parametertree.hh:158
static std::vector< std::string > split(const std::string &s)
Definition parametertree.cc:219
const KeyVector & getValueKeys() const
get value keys
Definition parametertree.cc:235
static std::basic_string< char, traits, Allocator > parse(const std::string &str)
Definition parametertree.hh:276
static bool parse(const std::string &str)
Definition parametertree.hh:293
char operator()(char c)
Definition parametertree.hh:286
static FieldVector< T, n > parse(const std::string &str)
Definition parametertree.hh:311
static std::array< T, n > parse(const std::string &str)
Definition parametertree.hh:321
static std::bitset< n > parse(const std::string &str)
Definition parametertree.hh:331
static std::vector< T, A > parse(const std::string &str)
Definition parametertree.hh:347
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