Utopia 2
Framework for studying models of complex & adaptive systems.
|
Functions | |
template<class T , class Keys = std::list<std::string>> | |
Config | __recursive_setitem (Config d, Keys &&key_sequence, const T &val) |
Helper function for recursive_setitem. | |
Config | recursive_getitem (const Config &d, const std::vector< std::string > &key_sequence) |
Recursively retrieve an element from the configuration tree. | |
Config | recursive_getitem (const Config &d, const std::string &key_sequence, const std::string &delims=".") |
Overload for recursive_getitem, accepting a string-like key sequence. | |
template<class T > | |
void | recursive_setitem (Config &d, std::list< std::string > key_sequence, const T val) |
Recursively sets an element in a configuration tree. | |
template<class T > | |
void | recursive_setitem (Config &d, const std::string &key_sequence, const T val, const std::string &delims=".") |
Overload for recursive_setitem that splits a string into a key sequence. | |