Utopia  2
Framework for studying models of complex & adaptive systems.
Functions
Utopia::_internal Namespace Reference

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. More...
 
Config recursive_getitem (const Config &d, const std::vector< std::string > &key_sequence)
 Recursively retrieve an element from the configuration tree. More...
 
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. More...
 
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. More...
 
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. More...