Represents a JSON value. More...
#include <json.h>
Classes | |
struct | CommentInfo |
class | CZString |
union | ValueHolder |
Public Types | |
typedef Json::ArrayIndex | ArrayIndex |
typedef Json::ArrayIndex | ArrayIndex |
typedef ValueConstIterator | const_iterator |
typedef ValueConstIterator | const_iterator |
typedef Json::Int | Int |
typedef Json::Int | Int |
typedef Json::Int64 | Int64 |
typedef Json::Int64 | Int64 |
typedef ValueIterator | iterator |
typedef ValueIterator | iterator |
typedef Json::LargestInt | LargestInt |
typedef Json::LargestInt | LargestInt |
typedef Json::LargestUInt | LargestUInt |
typedef Json::LargestUInt | LargestUInt |
typedef std::vector< std::string > | Members |
typedef std::vector< std::string > | Members |
typedef std::map< CZString, Value > | ObjectValues |
typedef std::map< CZString, Value > | ObjectValues |
typedef Json::UInt | UInt |
typedef Json::UInt | UInt |
typedef Json::UInt64 | UInt64 |
typedef Json::UInt64 | UInt64 |
Static Public Attributes | |
static const Int | maxInt = Int(UInt(-1) / 2) |
Maximum signed int value that can be stored in a Json::Value. More... | |
static const Int64 | maxInt64 |
Maximum signed 64 bits int value that can be stored in a Json::Value. More... | |
static const LargestInt | maxLargestInt = LargestInt(LargestUInt(-1) / 2) |
Maximum signed integer value that can be stored in a Json::Value. More... | |
static const LargestUInt | maxLargestUInt = LargestUInt(-1) |
Maximum unsigned integer value that can be stored in a Json::Value. More... | |
static const UInt | maxUInt = UInt(-1) |
Maximum unsigned int value that can be stored in a Json::Value. More... | |
static const UInt64 | maxUInt64 |
Maximum unsigned 64 bits int value that can be stored in a Json::Value. More... | |
static const Int | minInt = Int(~(UInt(-1) / 2)) |
Minimum signed int value that can be stored in a Json::Value. More... | |
static const Int64 | minInt64 |
Minimum signed 64 bits int value that can be stored in a Json::Value. More... | |
static const LargestInt | minLargestInt = LargestInt(~(LargestUInt(-1) / 2)) |
Minimum signed integer value that can be stored in a Json::Value. More... | |
static const Value & | null = reinterpret_cast<const Value&>(kNullRef) |
We regret this reference to a global instance; prefer the simpler Value(). More... | |
static const Value & | nullRef = null |
Private Member Functions | |
void | initBasic (ValueType type, bool allocated=false) |
void | initBasic (ValueType type, bool allocated=false) |
Value & | resolveReference (const char *key) |
Value & | resolveReference (const char *key) |
Value & | resolveReference (const char *key, const char *end) |
Value & | resolveReference (const char *key, const char *end) |
Private Attributes | |
unsigned int | allocated_: 1 |
CommentInfo * | comments_ |
size_t | limit_ |
size_t | start_ |
ValueType | type_: 8 |
union Json::Value::ValueHolder | value_ |
Friends | |
class | ValueIteratorBase |
Represents a JSON value.
This class is a discriminated union wrapper that can represents a:
The type of the held value is represented by a ValueType and can be obtained using type().
Values of an objectValue or arrayValue can be accessed using operator[]() methods. Non-const methods will automatically create the a nullValue element if it does not exist. The sequence of an arrayValue will be automatically resized and initialized with nullValue. resize() can be used to enlarge or truncate an arrayValue.
The get() methods can be used to obtain default value in the case the required element does not exist.
It is possible to iterate over the list of a objectValue values using the getMemberNames() method.
Definition at line 547 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::ArrayIndex Json::Value::ArrayIndex |
Definition at line 561 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::ArrayIndex Json::Value::ArrayIndex |
Definition at line 561 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef ValueConstIterator Json::Value::const_iterator |
Definition at line 552 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef ValueConstIterator Json::Value::const_iterator |
Definition at line 552 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::Int Json::Value::Int |
Definition at line 554 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::Int Json::Value::Int |
Definition at line 554 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::Int64 Json::Value::Int64 |
Definition at line 557 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::Int64 Json::Value::Int64 |
Definition at line 557 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef ValueIterator Json::Value::iterator |
Definition at line 551 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef ValueIterator Json::Value::iterator |
Definition at line 551 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::LargestInt Json::Value::LargestInt |
Definition at line 559 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::LargestInt Json::Value::LargestInt |
Definition at line 559 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::LargestUInt Json::Value::LargestUInt |
Definition at line 560 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::LargestUInt Json::Value::LargestUInt |
Definition at line 560 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef std::vector<std::string> Json::Value::Members |
Definition at line 550 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef std::vector<std::string> Json::Value::Members |
Definition at line 550 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Definition at line 630 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Definition at line 630 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::UInt Json::Value::UInt |
Definition at line 553 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::UInt Json::Value::UInt |
Definition at line 553 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::UInt64 Json::Value::UInt64 |
Definition at line 556 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
typedef Json::UInt64 Json::Value::UInt64 |
Definition at line 556 of file third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Create a default Value of the given type.
This is a very useful constructor. To create an empty array, pass arrayValue. To create an empty object, pass objectValue. Another Value can then be set to this one by assignment. This is useful since clear() and resize() will not alter types.
Examples:
Definition at line 2717 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value::Value | ( | Int | value | ) |
Definition at line 2744 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value::Value | ( | UInt | value | ) |
Definition at line 2749 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Json::Value::Value | ( | Int64 | value | ) |
Json::Value::Value | ( | UInt64 | value | ) |
Value::Value | ( | double | value | ) |
Definition at line 2764 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value::Value | ( | const char * | value | ) |
Copy til first 0. (NULL causes to seg-fault.)
Definition at line 2769 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Copy all, incl zeroes.
Definition at line 2774 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value::Value | ( | const StaticString & | value | ) |
Constructs a value from a static string.
Like other value string constructor but do not duplicate the string for internal storage. The given string must remain alive after the call to this constructor.
Example of usage:
Definition at line 2786 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value::Value | ( | const std::string & | value | ) |
Copy data() til size(). Embedded zeroes too.
Definition at line 2780 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value::Value | ( | bool | value | ) |
Definition at line 2798 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Deep copy.
Definition at line 2803 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value::~Value | ( | ) |
Definition at line 2855 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Create a default Value of the given type.
This is a very useful constructor. To create an empty array, pass arrayValue. To create an empty object, pass objectValue. Another Value can then be set to this one by assignment. This is useful since clear() and resize() will not alter types.
Examples:
Json::Value::Value | ( | Int | value | ) |
Json::Value::Value | ( | UInt | value | ) |
Json::Value::Value | ( | Int64 | value | ) |
Json::Value::Value | ( | UInt64 | value | ) |
Json::Value::Value | ( | double | value | ) |
Json::Value::Value | ( | const char * | value | ) |
Copy til first 0. (NULL causes to seg-fault.)
Json::Value::Value | ( | const StaticString & | value | ) |
Constructs a value from a static string.
Like other value string constructor but do not duplicate the string for internal storage. The given string must remain alive after the call to this constructor.
Example of usage:
Json::Value::Value | ( | bool | value | ) |
Value::~Value | ( | ) |
Definition at line 546 of file bloaty/third_party/protobuf/src/google/protobuf/struct.pb.cc.
Append value to array at the end.
Equivalent to jsonvalue[jsonvalue.size()] = value;
Definition at line 3478 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Append value to array at the end.
Equivalent to jsonvalue[jsonvalue.size()] = value;
bool Value::asBool | ( | ) | const |
Definition at line 3212 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::asBool | ( | ) | const |
const char * Value::asCString | ( | ) | const |
Embedded zeroes could cause you trouble!
Definition at line 3009 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
const char* Json::Value::asCString | ( | ) | const |
Embedded zeroes could cause you trouble!
double Value::asDouble | ( | ) | const |
Definition at line 3168 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
double Json::Value::asDouble | ( | ) | const |
float Value::asFloat | ( | ) | const |
Definition at line 3190 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
float Json::Value::asFloat | ( | ) | const |
Value::Int Value::asInt | ( | ) | const |
Definition at line 3063 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Int Json::Value::asInt | ( | ) | const |
Int64 Json::Value::asInt64 | ( | ) | const |
Int64 Json::Value::asInt64 | ( | ) | const |
LargestInt Value::asLargestInt | ( | ) | const |
Definition at line 3152 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
LargestInt Json::Value::asLargestInt | ( | ) | const |
LargestUInt Value::asLargestUInt | ( | ) | const |
Definition at line 3160 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
LargestUInt Json::Value::asLargestUInt | ( | ) | const |
std::string Json::Value::asString | ( | ) | const |
Embedded zeroes are possible.
std::string Value::asString | ( | ) | const |
Embedded zeroes are possible.
Definition at line 3028 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value::UInt Value::asUInt | ( | ) | const |
Definition at line 3085 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
UInt Json::Value::asUInt | ( | ) | const |
UInt64 Json::Value::asUInt64 | ( | ) | const |
UInt64 Json::Value::asUInt64 | ( | ) | const |
iterator Json::Value::begin | ( | ) |
iterator Json::Value::begin | ( | ) |
Value::iterator Value::begin | ( | ) | const |
Definition at line 3762 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
const_iterator Json::Value::begin | ( | ) | const |
void Value::clear | ( | ) |
Remove all object members and array elements.
Definition at line 3297 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
void Json::Value::clear | ( | ) |
Definition at line 2903 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Most general and efficient version of object-mutators.
Most general and efficient version of object-mutators.
bool Value::empty | ( | ) | const |
Return true if empty array, empty object, or null; otherwise, false.
Definition at line 3288 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::empty | ( | ) | const |
Return true if empty array, empty object, or null; otherwise, false.
iterator Json::Value::end | ( | ) |
iterator Json::Value::end | ( | ) |
Value::iterator Value::end | ( | ) | const |
Definition at line 3775 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
const_iterator Json::Value::end | ( | ) | const |
Most general and efficient version of isMember()const, get()const, and operator[]const
Most general and efficient version of isMember()const, get()const, and operator[]const
Definition at line 3430 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value Json::Value::get | ( | ArrayIndex | index, |
const Value & | defaultValue | ||
) | const |
If the array contains at least index+1 elements, returns the element value, otherwise returns defaultValue.
Value Value::get | ( | ArrayIndex | index, |
const Value & | defaultValue | ||
) | const |
If the array contains at least index+1 elements, returns the element value, otherwise returns defaultValue.
Definition at line 3423 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Return the member named key if it exist, defaultValue otherwise.
Return the member named key if it exist, defaultValue otherwise.
Definition at line 3480 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Return the member named key if it exist, defaultValue otherwise.
Return the member named key if it exist, defaultValue otherwise.
Definition at line 3485 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Return the member named key if it exist, defaultValue otherwise.
key | may contain embedded nulls. |
Return the member named key if it exist, defaultValue otherwise.
key | may contain embedded nulls. |
Definition at line 3489 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
std::string Value::getComment | ( | CommentPlacement | placement | ) | const |
Include delimiters and embedded newlines.
Definition at line 3743 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
std::string Json::Value::getComment | ( | CommentPlacement | placement | ) | const |
Include delimiters and embedded newlines.
Value::Members Value::getMemberNames | ( | ) | const |
Return a list of the member names.
If null, return an empty list.
Definition at line 3582 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Members Json::Value::getMemberNames | ( | ) | const |
size_t Value::getOffsetLimit | ( | ) | const |
Definition at line 3755 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
size_t Json::Value::getOffsetLimit | ( | ) | const |
size_t Json::Value::getOffsetStart | ( | ) | const |
size_t Value::getOffsetStart | ( | ) | const |
Definition at line 3753 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Get raw char* of string-value.
Get raw char* of string-value.
Definition at line 3019 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Value::hasComment | ( | CommentPlacement | placement | ) | const |
Definition at line 3739 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::hasComment | ( | CommentPlacement | placement | ) | const |
Definition at line 3374 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Value::isArray | ( | ) | const |
Definition at line 3717 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::isArray | ( | ) | const |
bool Value::isBool | ( | ) | const |
Definition at line 3631 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::isBool | ( | ) | const |
Definition at line 3231 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::isDouble | ( | ) | const |
bool Value::isDouble | ( | ) | const |
Definition at line 3711 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Value::isInt | ( | ) | const |
Definition at line 3633 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::isInt | ( | ) | const |
bool Value::isInt64 | ( | ) | const |
Definition at line 3663 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::isInt64 | ( | ) | const |
bool Json::Value::isIntegral | ( | ) | const |
bool Value::isIntegral | ( | ) | const |
Definition at line 3703 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Same as isMember(std::string const& key)const.
Definition at line 3562 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Return true if the object has a member named key.
Definition at line 3567 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Return true if the object has a member named key.
Return true if the object has a member named key.
key | may contain embedded nulls. |
Definition at line 3571 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Return true if the object has a member named key.
key | may contain embedded nulls. |
bool Json::Value::isNull | ( | ) | const |
bool Value::isNull | ( | ) | const |
Definition at line 3629 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Value::isNumeric | ( | ) | const |
Definition at line 3713 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::isNumeric | ( | ) | const |
bool Value::isObject | ( | ) | const |
Definition at line 3719 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::isObject | ( | ) | const |
bool Value::isString | ( | ) | const |
Definition at line 3715 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::isString | ( | ) | const |
bool Value::isUInt | ( | ) | const |
Definition at line 3648 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::isUInt | ( | ) | const |
bool Json::Value::isUInt64 | ( | ) | const |
bool Value::isUInt64 | ( | ) | const |
Definition at line 3683 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::isValidIndex | ( | ArrayIndex | index | ) | const |
Return true if index < size().
bool Value::isValidIndex | ( | ArrayIndex | index | ) | const |
Return true if index < size().
Definition at line 3428 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Value::operator! | ( | ) | const |
Return isNull()
Definition at line 3295 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Value::operator!= | ( | const Value & | other | ) | const |
Definition at line 3007 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::operator!= | ( | const Value & | other | ) | const |
Compare payload only, not comments etc.
Definition at line 2911 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 2957 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Deep copy, then swap(other).
Definition at line 2879 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Deep copy, then swap(other).
Definition at line 2963 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 2961 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 2959 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value & Value::operator[] | ( | ArrayIndex | index | ) |
Access an array element (zero based index ). If the array contains less than index element, then null value are inserted in the array so that its size is index+1. (You may need to say 'value[0u]' to get your compiler to distinguish this from the operator[] which takes a string.)
Definition at line 3331 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value& Json::Value::operator[] | ( | ArrayIndex | index | ) |
Access an array element (zero based index ). If the array contains less than index element, then null value are inserted in the array so that its size is index+1. (You may need to say 'value[0u]' to get your compiler to distinguish this from the operator[] which takes a string.)
const Value& Json::Value::operator[] | ( | ArrayIndex | index | ) | const |
Access an array element (zero based index ) (You may need to say 'value[0u]' to get your compiler to distinguish this from the operator[] which takes a string.)
const Value & Value::operator[] | ( | ArrayIndex | index | ) | const |
Access an array element (zero based index ) (You may need to say 'value[0u]' to get your compiler to distinguish this from the operator[] which takes a string.)
Definition at line 3354 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Access an object value by name, create a null member if it does not exist.
Definition at line 3454 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Access an object value by name, create a null member if it does not exist.
Access an object value by name, returns null if there is no member with that name.
Access an object value by name, returns null if there is no member with that name.
Definition at line 3441 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Value& Json::Value::operator[] | ( | const StaticString & | key | ) |
Access an object value by name, create a null member if it does not exist.
If the object has no entry for that name, then the member name used to store the new entry is not duplicated. Example of use:
Value & Value::operator[] | ( | const StaticString & | key | ) |
Access an object value by name, create a null member if it does not exist.
If the object has no entry for that name, then the member name used to store the new entry is not duplicated. Example of use:
Definition at line 3462 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Access an object value by name, create a null member if it does not exist.
key | may contain embedded nulls. |
Access an object value by name, create a null member if it does not exist.
key | may contain embedded nulls. |
Definition at line 3458 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Access an object value by name, returns null if there is no member with that name.
key | may contain embedded nulls. |
Access an object value by name, returns null if there is no member with that name.
key | may contain embedded nulls. |
Definition at line 3447 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Access an array element (zero based index ). If the array contains less than index element, then null value are inserted in the array so that its size is index+1. (You may need to say 'value[0u]' to get your compiler to distinguish this from the operator[] which takes a string.)
Access an array element (zero based index ). If the array contains less than index element, then null value are inserted in the array so that its size is index+1. (You may need to say 'value[0u]' to get your compiler to distinguish this from the operator[] which takes a string.)
Definition at line 3347 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Access an array element (zero based index ) (You may need to say 'value[0u]' to get your compiler to distinguish this from the operator[] which takes a string.)
Access an array element (zero based index ) (You may need to say 'value[0u]' to get your compiler to distinguish this from the operator[] which takes a string.)
Definition at line 3367 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
bool Json::Value::removeIndex | ( | ArrayIndex | i, |
Value * | removed | ||
) |
Remove the indexed array element.
O(n) expensive operations. Update 'removed' iff removed.
bool Value::removeIndex | ( | ArrayIndex | i, |
Value * | removed | ||
) |
Remove the indexed array element.
O(n) expensive operations. Update 'removed' iff removed.
Definition at line 3532 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Same as removeMember(std::string const& key, Value* removed)
Definition at line 3495 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Remove and return the named member.
Do nothing if it did not exist.
Definition at line 3516 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Same as removeMember(const char* begin, const char* end, Value* removed), but 'key' is null-terminated.
Same as removeMember(const char* begin, const char* end, Value* removed), but 'key' is null-terminated.
Definition at line 3508 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Same as removeMember(const char*)
key | may contain embedded nulls. |
Definition at line 3527 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Remove the named map member.
Update 'removed' iff removed.
key | may contain embedded nulls. |
Definition at line 3512 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Remove the named map member.
Update 'removed' iff removed.
key | may contain embedded nulls. |
void Json::Value::resize | ( | ArrayIndex | size | ) |
void Value::resize | ( | ArrayIndex | size | ) |
Resize the array to size elements. New elements are initialized to null. May only be called on nullValue or arrayValue.
Definition at line 3313 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 3385 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
Definition at line 3404 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
void Value::setComment | ( | const char * | comment, |
CommentPlacement | placement | ||
) |
Definition at line 3731 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
void Json::Value::setComment | ( | const char * | comment, |
CommentPlacement | placement | ||
) |
void Json::Value::setComment | ( | const char * | comment, |
size_t | len, | ||
CommentPlacement | placement | ||
) |
Comments must be //... or /* ... */.
void Value::setComment | ( | const char * | comment, |
size_t | len, | ||
CommentPlacement | placement | ||
) |
Comments must be //... or /* ... */.
Definition at line 3721 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
void Json::Value::setComment | ( | const std::string & | comment, |
CommentPlacement | placement | ||
) |
Comments must be //... or /* ... */.
void Value::setComment | ( | const std::string & | comment, |
CommentPlacement | placement | ||
) |
Comments must be //... or /* ... */.
Definition at line 3735 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
void Json::Value::setOffsetLimit | ( | size_t | limit | ) |
void Value::setOffsetLimit | ( | size_t | limit | ) |
Definition at line 3751 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
void Json::Value::setOffsetStart | ( | size_t | start | ) |
void Value::setOffsetStart | ( | size_t | start | ) |
Definition at line 3749 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
ArrayIndex Json::Value::size | ( | ) | const |
Number of values in array or object.
ArrayIndex Value::size | ( | ) | const |
Number of values in array or object.
Definition at line 3265 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
void Value::swap | ( | Value & | other | ) |
Swap everything.
Definition at line 2894 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
void Json::Value::swap | ( | Value & | other | ) |
Swap everything.
void Json::Value::swapPayload | ( | Value & | other | ) |
Swap values but leave comments and source offsets in place.
void Value::swapPayload | ( | Value & | other | ) |
Swap values but leave comments and source offsets in place.
Definition at line 2884 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
std::string Json::Value::toStyledString | ( | ) | const |
std::string Value::toStyledString | ( | ) | const |
Definition at line 3757 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
ValueType Value::type | ( | ) | const |
Definition at line 2901 of file bloaty/third_party/protobuf/conformance/third_party/jsoncpp/jsoncpp.cpp.
ValueType Json::Value::type | ( | ) | const |
|
friend |
Definition at line 548 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 980 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 982 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 987 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Maximum signed int value that can be stored in a Json::Value.
Definition at line 575 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Maximum signed 64 bits int value that can be stored in a Json::Value.
Definition at line 583 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
static |
Maximum signed integer value that can be stored in a Json::Value.
Definition at line 568 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
static |
Maximum unsigned integer value that can be stored in a Json::Value.
Definition at line 570 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Maximum unsigned int value that can be stored in a Json::Value.
Definition at line 577 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Maximum unsigned 64 bits int value that can be stored in a Json::Value.
Definition at line 585 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Minimum signed int value that can be stored in a Json::Value.
Definition at line 573 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
Minimum signed 64 bits int value that can be stored in a Json::Value.
Definition at line 581 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
static |
Minimum signed integer value that can be stored in a Json::Value.
Definition at line 566 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
We regret this reference to a global instance; prefer the simpler Value().
Definition at line 563 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
just a kludge for binary-compatibility; same as null
Definition at line 564 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 986 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |
Definition at line 979 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
|
private |