CGRA-ME
|
#include <CGRA/utility/Collections.h>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
Go to the source code of this file.
Classes | |
struct | ImplicitlyToString |
class | ConfigStore |
Functions | |
template<typename S1 , typename S2 > | |
bool | equalsIgnoreCase (const S1 &s1, const S2 &s2) |
template<typename S > | |
bool | isTruthString (const S &s) |
template<typename S > | |
bool | isFarceString (const S &s) |
const char * | makeBoolString (bool v) |
ConfigStore & | add_all (ConfigStore &into, const ConfigStore &from) |
Add (or set) all keys from from in into . More... | |
ConfigStore & | set_all (ConfigStore &into, const ConfigStore &from) |
ConfigStore & | override_all (ConfigStore &into, const ConfigStore &from) |
template<typename... CSes> | |
ConfigStore & | add_all (ConfigStore &into, const ConfigStore &from1, const CSes &... froms) |
template<typename... CSes> | |
ConfigStore & | set_all (ConfigStore &into, const ConfigStore &from1, const CSes &... froms) |
template<typename... CSes> | |
ConfigStore & | override_all (ConfigStore &into, const ConfigStore &from1, const CSes &... froms) |
template<typename... CSes> | |
ConfigStore | add_all (ConfigStore &&into, const ConfigStore &from1, const CSes &... froms) |
template<typename... CSes> | |
ConfigStore | set_all (ConfigStore &&into, const ConfigStore &from1, const CSes &... froms) |
template<typename... CSes> | |
ConfigStore | override_all (ConfigStore &&into, const ConfigStore &from1, const CSes &... froms) |
template<typename... CSes> | |
ConfigStore | with_added (ConfigStore into, const ConfigStore &from1, const CSes &... froms) |
template<typename... CSes> | |
ConfigStore | with_set (ConfigStore into, const ConfigStore &from1, const CSes &... froms) |
template<typename... CSes> | |
ConfigStore | with_overridden (ConfigStore into, const ConfigStore &from1, const CSes &... froms) |
ConfigStore | getEntriesForPrefix (const ConfigStore &cs, const std::string &prefix) |
ConfigStore | addPrefix (const ConfigStore &cs, const std::string &prefix) |
template<typename Filter > | |
auto | filterKeys (const ConfigStore &cs, Filter &&f) -> decltype(f(std::string()), ConfigStore()) |
ConfigStore add_all | ( | ConfigStore && | into, |
const ConfigStore & | from1, | ||
const CSes &... | froms | ||
) |
Definition at line 273 of file ConfigStore.h.
|
inline |
Add (or set) all keys from from
in into
.
Definition at line 251 of file ConfigStore.h.
ConfigStore& add_all | ( | ConfigStore & | into, |
const ConfigStore & | from1, | ||
const CSes &... | froms | ||
) |
Definition at line 268 of file ConfigStore.h.
|
inline |
Return a (new) ConfigStore with all the keys prefixed with prefix
Definition at line 298 of file ConfigStore.h.
bool equalsIgnoreCase | ( | const S1 & | s1, |
const S2 & | s2 | ||
) |
Definition at line 22 of file ConfigStore.h.
auto filterKeys | ( | const ConfigStore & | cs, |
Filter && | f | ||
) | -> decltype(f(std::string()), ConfigStore()) |
Return a (new) ConfigStore with only the allowed keys; keys that the filter returns true
2-arg (key, value) overload
Definition at line 311 of file ConfigStore.h.
|
inline |
Return a (new) ConfigStore, that is cs
filtered to only contain entries that start with prefix
, with that prefix removed.
Definition at line 285 of file ConfigStore.h.
bool isFarceString | ( | const S & | s | ) |
Definition at line 45 of file ConfigStore.h.
bool isTruthString | ( | const S & | s | ) |
Definition at line 35 of file ConfigStore.h.
|
inline |
Definition at line 54 of file ConfigStore.h.
ConfigStore override_all | ( | ConfigStore && | into, |
const ConfigStore & | from1, | ||
const CSes &... | froms | ||
) |
Definition at line 275 of file ConfigStore.h.
|
inline |
Like set_all
but throws if a key doesn't exist
Definition at line 257 of file ConfigStore.h.
ConfigStore& override_all | ( | ConfigStore & | into, |
const ConfigStore & | from1, | ||
const CSes &... | froms | ||
) |
Definition at line 270 of file ConfigStore.h.
ConfigStore set_all | ( | ConfigStore && | into, |
const ConfigStore & | from1, | ||
const CSes &... | froms | ||
) |
Definition at line 274 of file ConfigStore.h.
|
inline |
Definition at line 252 of file ConfigStore.h.
ConfigStore& set_all | ( | ConfigStore & | into, |
const ConfigStore & | from1, | ||
const CSes &... | froms | ||
) |
Definition at line 269 of file ConfigStore.h.
ConfigStore with_added | ( | ConfigStore | into, |
const ConfigStore & | from1, | ||
const CSes &... | froms | ||
) |
Definition at line 278 of file ConfigStore.h.
ConfigStore with_overridden | ( | ConfigStore | into, |
const ConfigStore & | from1, | ||
const CSes &... | froms | ||
) |
Definition at line 280 of file ConfigStore.h.
ConfigStore with_set | ( | ConfigStore | into, |
const ConfigStore & | from1, | ||
const CSes &... | froms | ||
) |
Definition at line 279 of file ConfigStore.h.