MPQC
3.0.0-alpha
|
#include <util/keyval/keyval.h>
Public Member Functions | |
Keyword (const Ref< KeyVal > &kv, const std::string &key) | |
const Ref< KeyVal > & | keyval () const |
const std::string & | key () const |
template<typename Value , typename Alloc > | |
Keyword & | operator>> (std::vector< Value, Alloc > &vec) |
fills up std::vector using KeyVal object of the following form key = [ value0 value1 value2 .... More... | |
template<typename Key , typename Compare , typename Alloc > | |
Keyword & | operator>> (std::set< Key, Compare, Alloc > &c) |
fills up std::set using KeyVal object of the following form key = [ key0 key1 key2 .... More... | |
template<typename Key , typename Data , typename Compare , typename Alloc > | |
Keyword & | operator>> (std::map< Key, Data, Compare, Alloc > &c) |
fills up std::map using KeyVal object of the following form key = [ [key0 value0] [key1 value1] [key2 value2] .... More... | |
Provides convenient way to fill standard containers from KeyVal
|
inline |
fills up std::map using KeyVal object of the following form key = [ [key0 value0] [key1 value1] [key2 value2] ....
]
|
inline |
fills up std::set using KeyVal object of the following form key = [ key0 key1 key2 ....
. ]
|
inline |
fills up std::vector using KeyVal object of the following form key = [ value0 value1 value2 ....
]