libzypp
17.37.5
|
#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 |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Object &obj) |
Definition at line 99 of file JsonValue.h.
using zypp::json::Object::iterator = std::multimap<String, Value>::iterator |
Definition at line 102 of file JsonValue.h.
using zypp::json::Object::const_iterator = std::multimap<String, Value>::const_iterator |
Definition at line 103 of file JsonValue.h.
using zypp::json::Object::size_type = std::multimap<String, Value>::size_type |
Definition at line 104 of file JsonValue.h.
zypp::json::Object::Object | ( | ) |
Definition at line 42 of file JsonValue.cc.
|
inline |
Construct from map-iterator.
Definition at line 110 of file JsonValue.h.
Construct from map-initializer list { {k1,v1}, {k2,v2},...
}
|
inline |
Definition at line 117 of file JsonValue.h.
|
inline |
Definition at line 120 of file JsonValue.h.
Add key/value pair.
Definition at line 48 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 51 of file JsonValue.cc.
std::string zypp::json::Object::asJSON | ( | ) | const |
JSON representation.
Definition at line 57 of file JsonValue.cc.
std::ostream & zypp::json::Object::dumpOn | ( | std::ostream & | str | ) | const |
Stream output.
Definition at line 60 of file JsonValue.cc.
|
inline |
Definition at line 134 of file JsonValue.h.
|
inline |
Definition at line 135 of file JsonValue.h.
|
inline |
Definition at line 137 of file JsonValue.h.
|
inline |
Definition at line 138 of file JsonValue.h.
Definition at line 71 of file JsonValue.cc.
|
inline |
Definition at line 142 of file JsonValue.h.
Definition at line 146 of file JsonValue.h.
|
inline |
Definition at line 150 of file JsonValue.h.
Definition at line 75 of file JsonValue.cc.
Definition at line 83 of file JsonValue.cc.
Definition at line 89 of file JsonValue.cc.
|
private |
Definition at line 93 of file JsonValue.cc.
|
related |
Stream output
Definition at line 166 of file JsonValue.h.
Definition at line 162 of file JsonValue.h.