|
libzypp
17.32.2
|
#include </home/abuild/rpmbuild/BUILD/libzypp-17.32.2/zypp-media/ng/headervaluemap.h>
Classes | |
| class | const_iterator |
Public Types | |
| using | Value = HeaderValue |
| using | ValueMap = std::map< std::string, std::vector< Value > > |
Public Member Functions | |
| HeaderValueMap ()=default | |
| HeaderValueMap (std::initializer_list< ValueMap::value_type > init) | |
| bool | contains (const std::string &key) const |
| bool | contains (const std::string_view &key) const |
| void | set (const std::string &key, const Value &val) |
| void | set (const std::string &key, Value &&val) |
| void | add (const std::string &key, const Value &val) |
| void | clear () |
| ValueMap::size_type | size () const noexcept |
| std::vector< Value > & | values (const std::string &key) |
| const std::vector< Value > & | values (const std::string &key) const |
| std::vector< Value > & | values (const std::string_view &key) |
| const std::vector< Value > & | values (const std::string_view &key) const |
| Value | value (const std::string_view &str, const Value &defaultVal=Value()) const |
| Value | value (const std::string &str, const Value &defaultVal=Value()) const |
| Value & | operator[] (const std::string &key) |
| Value & | operator[] (const std::string_view &key) |
| const Value & | operator[] (const std::string &key) const |
| const Value & | operator[] (const std::string_view &key) const |
| const_iterator | erase (const const_iterator &i) |
| bool | erase (const std::string &key) |
| const_iterator | begin () const |
| const_iterator | end () const |
| ValueMap::iterator | beginList () |
| ValueMap::iterator | endList () |
| ValueMap::const_iterator | beginList () const |
| ValueMap::const_iterator | endList () const |
| ValueMap::const_iterator | cbeginList () const |
| ValueMap::const_iterator | cendList () const |
Static Public Attributes | |
| static Value | InvalidValue |
Private Attributes | |
| ValueMap | _values |
Definition at line 69 of file headervaluemap.h.
Definition at line 72 of file headervaluemap.h.
| using zyppng::HeaderValueMap::ValueMap = std::map<std::string, std::vector<Value> > |
Definition at line 73 of file headervaluemap.h.
|
default |
| zyppng::HeaderValueMap::HeaderValueMap | ( | std::initializer_list< ValueMap::value_type > | init | ) |
| bool zyppng::HeaderValueMap::contains | ( | const std::string & | key | ) | const |
Definition at line 167 of file headervaluemap.cc.
|
inline |
Definition at line 123 of file headervaluemap.h.
| void zyppng::HeaderValueMap::set | ( | const std::string & | key, |
| const Value & | val | ||
| ) |
Definition at line 172 of file headervaluemap.cc.
| void zyppng::HeaderValueMap::set | ( | const std::string & | key, |
| Value && | val | ||
| ) |
Definition at line 182 of file headervaluemap.cc.
| void zyppng::HeaderValueMap::add | ( | const std::string & | key, |
| const Value & | val | ||
| ) |
Definition at line 192 of file headervaluemap.cc.
| void zyppng::HeaderValueMap::clear | ( | ) |
Definition at line 202 of file headervaluemap.cc.
|
noexcept |
Definition at line 207 of file headervaluemap.cc.
| std::vector< HeaderValueMap::Value > & zyppng::HeaderValueMap::values | ( | const std::string & | key | ) |
Definition at line 212 of file headervaluemap.cc.
| const std::vector< HeaderValueMap::Value > & zyppng::HeaderValueMap::values | ( | const std::string & | key | ) | const |
Definition at line 217 of file headervaluemap.cc.
|
inline |
Definition at line 136 of file headervaluemap.h.
|
inline |
Definition at line 140 of file headervaluemap.h.
| HeaderValueMap::Value zyppng::HeaderValueMap::value | ( | const std::string_view & | str, |
| const Value & | defaultVal = Value() |
||
| ) | const |
Returns the last entry with key str in the list of values or the default value specified in defaultVal
Definition at line 222 of file headervaluemap.cc.
| HeaderValueMap::Value zyppng::HeaderValueMap::value | ( | const std::string & | str, |
| const Value & | defaultVal = Value() |
||
| ) | const |
Definition at line 225 of file headervaluemap.cc.
| HeaderValueMap::Value & zyppng::HeaderValueMap::operator[] | ( | const std::string & | key | ) |
Definition at line 232 of file headervaluemap.cc.
| HeaderValueMap::Value & zyppng::HeaderValueMap::operator[] | ( | const std::string_view & | key | ) |
Definition at line 239 of file headervaluemap.cc.
| const HeaderValueMap::Value & zyppng::HeaderValueMap::operator[] | ( | const std::string & | key | ) | const |
Definition at line 244 of file headervaluemap.cc.
| const HeaderValueMap::Value & zyppng::HeaderValueMap::operator[] | ( | const std::string_view & | key | ) | const |
Definition at line 251 of file headervaluemap.cc.
| HeaderValueMap::const_iterator zyppng::HeaderValueMap::erase | ( | const const_iterator & | i | ) |
Definition at line 256 of file headervaluemap.cc.
| bool zyppng::HeaderValueMap::erase | ( | const std::string & | key | ) |
Definition at line 262 of file headervaluemap.cc.
|
inline |
Definition at line 159 of file headervaluemap.h.
|
inline |
Definition at line 162 of file headervaluemap.h.
|
inline |
Definition at line 166 of file headervaluemap.h.
|
inline |
Definition at line 169 of file headervaluemap.h.
|
inline |
Definition at line 173 of file headervaluemap.h.
|
inline |
Definition at line 176 of file headervaluemap.h.
|
inline |
Definition at line 180 of file headervaluemap.h.
|
inline |
Definition at line 183 of file headervaluemap.h.
|
static |
Definition at line 75 of file headervaluemap.h.
|
private |
Definition at line 188 of file headervaluemap.h.