#include <zypp-core/parser/json/JsonValue.h>
|
| Object () |
template<class Iterator> |
| Object (Iterator begin, Iterator end) |
| Construct from map-iterator.
|
| Object (const std::initializer_list< std::pair< String, Value > > &contents_r) |
| Construct from map-initializer list { {k1,v1}, {k2,v2},... }.
|
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.
|
void | add (std::initializer_list< std::pair< String, Value > > contents_r) |
std::string | asJSON () const |
| JSON representation.
|
std::ostream & | dumpOn (std::ostream &str) const |
| Stream output.
|
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 |
|
(Note that these are not member symbols.)
|
std::ostream & | operator<< (std::ostream &str, const Object &obj) |
| Stream output.
|
Definition at line 99 of file JsonValue.h.
◆ iterator
◆ const_iterator
◆ size_type
◆ Object() [1/5]
zypp::json::Object::Object |
( |
| ) |
|
◆ Object() [2/5]
template<class Iterator>
zypp::json::Object::Object |
( |
Iterator | begin, |
|
|
Iterator | end ) |
|
inline |
Construct from map-iterator.
Definition at line 110 of file JsonValue.h.
◆ Object() [3/5]
zypp::json::Object::Object |
( |
const std::initializer_list< std::pair< String, Value > > & | contents_r | ) |
|
Construct from map-initializer list { {k1,v1}, {k2,v2},... }.
Definition at line 44 of file JsonValue.cc.
◆ Object() [4/5]
template<typename K, typename V>
zypp::json::Object::Object |
( |
std::multimap< K, V > | values | ) |
|
|
inline |
◆ Object() [5/5]
template<typename K, typename V>
zypp::json::Object::Object |
( |
std::map< K, V > | values | ) |
|
|
inline |
◆ add() [1/2]
void zypp::json::Object::add |
( |
String | key_r, |
|
|
Value | val_r ) |
◆ add() [2/2]
void zypp::json::Object::add |
( |
std::initializer_list< std::pair< String, Value > > | contents_r | ) |
|
◆ asJSON()
std::string zypp::json::Object::asJSON |
( |
| ) |
const |
◆ dumpOn() [1/2]
std::ostream & zypp::json::Object::dumpOn |
( |
std::ostream & | str | ) |
const |
◆ begin() [1/2]
◆ end() [1/2]
◆ begin() [2/2]
◆ end() [2/2]
◆ contains()
bool zypp::json::Object::contains |
( |
const String & | key | ) |
const |
◆ size()
◆ equal_range() [1/2]
◆ equal_range() [2/2]
◆ values()
std::vector< Value > zypp::json::Object::values |
( |
const String & | key | ) |
const |
◆ value()
const Value & zypp::json::Object::value |
( |
const String & | key | ) |
const |
◆ operator==()
bool zypp::json::Object::operator== |
( |
const Object & | other | ) |
const |
◆ dumpOn() [2/2]
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & | str, |
|
|
const Object & | obj ) |
|
related |
◆ _values
std::multimap<String, Value> zypp::json::Object::_values |
|
private |
The documentation for this class was generated from the following files: