8 #ifndef INCLUDED_UHD_TYPES_DICT_HPP
9 #define INCLUDED_UHD_TYPES_DICT_HPP
21 template <
typename Key,
typename Val>
36 template <
typename InputIterator>
37 dict(InputIterator first, InputIterator last);
43 std::size_t
size(
void)
const;
50 std::vector<Key>
keys(
void)
const;
57 std::vector<Val>
vals(
void)
const;
64 bool has_key(
const Key& key)
const;
72 const Val&
get(
const Key& key,
const Val& other)
const;
79 const Val&
get(
const Key& key)
const;
86 void set(
const Key& key,
const Val& val);
125 Val
pop(
const Key& key);
146 operator std::map<Key, Val>()
const;
149 typedef std::pair<Key, Val> pair_t;
150 std::list<pair_t> _map;
std::vector< Key > keys(void) const
Definition: dict.ipp:52
std::vector< Val > vals(void) const
Definition: dict.ipp:61
bool operator==(const dict< Key, Val > &other) const
Definition: dict.ipp:116
void update(const dict< Key, Val > &new_dict, bool fail_on_conflict=true)
Definition: dict.ipp:147
const Val & operator[](const Key &key) const
Definition: dict.ipp:99
std::size_t size(void) const
Definition: dict.ipp:47
bool operator!=(const dict< Key, Val > &other) const
Definition: dict.ipp:129
bool has_key(const Key &key) const
Definition: dict.ipp:70
dict(void)
Definition: dict.ipp:35
const Val & get(const Key &key, const Val &other) const
Definition: dict.ipp:78
Val pop(const Key &key)
Definition: dict.ipp:134
void set(const Key &key, const Val &val)
Definition: dict.ipp:94
Definition: build_info.hpp:13