|
| template<class M , class F > |
| static void | get (const M &m, const typename M::key_type &key, F &value) |
| | If the key is found, the value is returned as a reference.
|
| |
|
template<class M , class S , bool STRICT = true> |
| static void | setCastableValues (M &dst, const std::map< std::string, S > &srcMap) |
| |
| template<class M , class S > |
| static void | updateCastableValues (M &dst, const std::map< std::string, S > &src) |
| |
|
template<class M , bool STRICT = true> |
| static void | setValues (M &dst, const std::initializer_list< Variable::init_pair_t > &l) |
| |
|
template<class K , class V > |
| static std::map< K, V >::const_iterator | findEntryByKey (const std::map< K, V > &m, const K &key) |
| | Quick search for std::map.
|
| |
|
template<class K , class V > |
| static std::list< K, V >::const_iterator | findEntryByKey (const std::list< K, V > &l, const K &key) |
| | Slow (exhaustive) search for std::list.
|
| |
|
template<class M > |
| static bool | hasKey (const M &m, const typename M::key_type &key) |
| |
| template<class M > |
| static const M::mapped_type & | get (const M &m, const typename M::key_type &key) |
| | If the key is found, the value is returned as a reference.
|
| |
|
template<class M > |
| static M::mapped_type & | get (M &m, const typename M::key_type &key) |
| |
|
template<class M > |
| static const M::value_type::second_type & | get (const M &m, const typename M::value_type::first_type &key, const typename M::value_type::second_type &defaultValue) |
| |
|
template<class M > |
| static std::string | get (const M &m, const typename M::key_type &key, const char *defaultValue) |
| |
| template<class M , class V , bool STRICT = true> |
| static void | setValue (M &dst, const std::string &key, const V &value) |
| | Set value of an element. If not STRICT, set only if key exists ie update.
|
| |
|
template<class M , class V > |
| static void | setValue (M &dst, const std::string &key, const V &value, bool STRICT) |
| |
| template<class M , class V > |
| static void | updateValue (M &dst, const std::string &key, const V &value) |
| | Set value only if key exists.
|
| |
| template<class M , class S , bool STRICT = true> |
| static void | setValues (M &dst, const std::map< std::string, S > &srcMap) |
| |
| template<class M , class S > |
| static void | updateValues (M &dst, const std::map< std::string, S > &src) |
| |
| template<class M , bool STRICT = true> |
| static void | setValues (M &dst, const std::list< std::string > &values, char equalSign='=', const std::string &trimChars="") |
| | Assign values from list, accepting strict "<key>=<value>" format, no positional arguments.
|
| |
| template<class M > |
| static void | updateValues (M &dst, const std::list< std::string > &values, char equals='=') |
| | Assign values from list, accepting strict "<key>=<value>" format, no positional arguments.
|
| |
| template<class M , bool STRICT = true> |
| static void | setValues (M &dst, const std::list< std::string > &keys, const std::list< std::string > &entries, char assignmentChar='=') |
| | Assign values from list, accepting keyword arguments <key>=,<key2>=<value2> and positional arguments ,<value2>... .
|
| |
| template<class M > |
| static void | updateValues (M &dst, const std::list< std::string > &keys, const std::list< std::string > &entries, char equals='=') |
| |
| template<class M , bool STRICT = true> |
| static void | setValues (M &dst, const std::string &values, char split=',', char equals='=', const std::string &trimChars="") |
| | Assign values from string, assuming strict "<key>=<value>" format, no positional arguments.
|
| |
| template<class M > |
| static void | updateValues (M &dst, const std::string &values, char split=',', char equals='=') |
| |
| template<class M , bool STRICT = true> |
| static void | setValues (M &dst, const std::list< std::string > &keys, const std::string &values, char split=',', char equals='=') |
| | Assign values from string, accepting keyword arguments <key>=,<key2>=<value2> and positional arguments ,<value2>... .
|
| |
| template<class M > |
| static void | updateValues (M &dst, const std::list< std::string > &keys, const std::string &values, char split=',', char equals='=') |
| |
| template<class M , class V , bool STRICT = true> |
| static void | setValues (M &dst, const std::list< std::string > &keys, std::initializer_list< V > values) |
| | Assign values from string, accepting keyword arguments <key>=,<key2>=<value2> and positional arguments ,<value2>... .
|
| |
| template<class M , class V > |
| static void | setValues (M &dst, std::initializer_list< V > values) |
| |
|
template<class M , typename K , typename V > |
| static void | setValues (M &dst, std::initializer_list< std::pair< K, V > > values) |
| | NEW 2025.
|
| |
General purpose tools for handling values and keys of std::map<>