|
libzypp
17.38.17
|
#include <zypp-core/parser/json/JsonValue.h>
Public Types | |
| using | iterator = std::multimap< String, Value >::iterator |
| using | const_iterator = std::multimap< String, Value >::const_iterator |
| using | size_type = std::multimap< String, Value >::size_type |
Public Member Functions | |
| Object () | |
| template<class Iterator > | |
| Object (Iterator begin, Iterator end) | |
| Construct from map-iterator. More... | |
| Object (const std::initializer_list< std::pair< String, Value >> &contents_r) | |
| Construct from map-initializer list { {k1,v1}, {k2,v2},... More... | |
| template<typename K , typename V > | |
| Object (std::multimap< K, V > values) | |
| template<typename K , typename V > | |
| Object (std::map< K, V > values) | |
| void | add (String key_r, Value val_r) |
| Add key/value pair. More... | |
| void | add (std::initializer_list< std::pair< String, Value > > contents_r) |
| std::string | asJSON () const |
| JSON representation. More... | |
| std::ostream & | dumpOn (std::ostream &str) const |
| Stream output. More... | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| bool | contains (const String &key) const |
| size_type | size () const |
| std::pair< iterator, iterator > | equal_range (const String &key) |
| std::pair< const_iterator, const_iterator > | equal_range (const String &key) const |
| std::vector< Value > | values (const String &key) const |
| const Value & | value (const String &key) const |
| bool | operator== (const Object &other) const |
Private Member Functions | |
| std::ostream & | dumpOn (std::ostream &str, std::map< String, Value >::const_iterator val_r) const |
Private Attributes | |
| std::multimap< String, Value > | _values |
Definition at line 101 of file JsonValue.h.
| using zypp::json::Object::iterator = std::multimap<String, Value>::iterator |
Definition at line 104 of file JsonValue.h.
| using zypp::json::Object::const_iterator = std::multimap<String, Value>::const_iterator |
Definition at line 105 of file JsonValue.h.
| using zypp::json::Object::size_type = std::multimap<String, Value>::size_type |
Definition at line 106 of file JsonValue.h.
| zypp::json::Object::Object | ( | ) |
Definition at line 56 of file JsonValue.cc.
|
inline |
Construct from map-iterator.
Definition at line 112 of file JsonValue.h.
Construct from map-initializer list { {k1,v1}, {k2,v2},...
}
|
inline |
Definition at line 119 of file JsonValue.h.
|
inline |
Definition at line 122 of file JsonValue.h.
Add key/value pair.
Definition at line 62 of file JsonValue.cc.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 65 of file JsonValue.cc.
| std::string zypp::json::Object::asJSON | ( | ) | const |
JSON representation.
Definition at line 71 of file JsonValue.cc.
| std::ostream & zypp::json::Object::dumpOn | ( | std::ostream & | str | ) | const |
Stream output.
Definition at line 74 of file JsonValue.cc.
|
inline |
Definition at line 136 of file JsonValue.h.
|
inline |
Definition at line 137 of file JsonValue.h.
|
inline |
Definition at line 139 of file JsonValue.h.
|
inline |
Definition at line 140 of file JsonValue.h.
Definition at line 85 of file JsonValue.cc.
|
inline |
Definition at line 144 of file JsonValue.h.
Definition at line 148 of file JsonValue.h.
|
inline |
Definition at line 152 of file JsonValue.h.
Definition at line 89 of file JsonValue.cc.
Definition at line 97 of file JsonValue.cc.
Definition at line 103 of file JsonValue.cc.
|
private |
Definition at line 107 of file JsonValue.cc.
Definition at line 164 of file JsonValue.h.