An array of JSON values. Arrays in JSON can contain values of different types.
|
|
JsonValue * | LookupElementWithIter (JsonPointer::Iterator *iter) |
| |
|
bool | operator== (const JsonValue &other) const |
| |
| bool | Equals (const JsonArray &other) const |
| | Check if this JsonValue equals a JsonArray.
|
| |
| void | Append (const std::string &value) |
| | Append a string value to the array.
|
| |
| void | Append (const char *value) |
| | Append a string value to the array.
|
| |
| void | Append (unsigned int i) |
| | Append an unsigned int value to the array.
|
| |
| void | Append (int i) |
| | Append an int value to the array.
|
| |
| void | Append (bool value) |
| | Append a bool value to the array.
|
| |
|
void | Append () |
| | Append a null value to the array.
|
| |
|
void | Append (JsonValue *value) |
| | Append a JsonValue. Takes ownership of the pointer.
|
| |
|
void | Append (JsonObject *value) |
| | Append a JsonValue. Takes ownership of the pointer.
|
| |
| JsonObject * | AppendObject () |
| | Append a JsonObject to the array.
|
| |
| JsonArray * | AppendArray () |
| | Append a JsonArray to the array.
|
| |
| void | AppendValue (JsonValue *value) |
| | Append a JsonValue to the array.
|
| |
|
void | AppendRaw (const std::string &value) |
| | Append a raw value to the array.
|
| |
| bool | RemoveElementAt (uint32_t index) |
| | Remove the JsonValue at the specified index.
|
| |
| bool | ReplaceElementAt (uint32_t index, JsonValue *value) |
| | Replace the JsonValue at the specified index.
|
| |
| bool | InsertElementAt (uint32_t index, JsonValue *value) |
| | Inserts the JsonValue at the specified index.
|
| |
|
void | Accept (JsonValueVisitorInterface *visitor) |
| |
|
void | Accept (JsonValueConstVisitorInterface *visitor) const |
| |
| JsonValue * | Clone () const |
| | Make a copy of this JsonValue.
|
| |
| bool | IsEmpty () const |
| | Check if there are elements within the array.
|
| |
|
unsigned int | Size () const |
| | Return the number of elements in the array.
|
| |
| const JsonValue * | ElementAt (unsigned int i) const |
| | Return the element at index i.
|
| |
|
bool | IsComplexType () const |
| | Return true if this array contains nested arrays or objects.
|
| |
|
virtual JsonValue * | LookupElement (const JsonPointer &pointer) |
| | Locate the JsonValue referred to by the JSON Pointer.
|
| |
| virtual bool | operator== (const JsonValue &other) const =0 |
| | Equality operator.
|
| |
|
virtual bool | operator!= (const JsonValue &other) const |
| | Not-equals operator.
|
| |
| virtual void | Accept (JsonValueVisitorInterface *visitor)=0 |
| | The Accept method for the visitor pattern.
|
| |
| virtual void | Accept (JsonValueConstVisitorInterface *visitor) const =0 |
| | The Accept (const) method for the visitor pattern.
|
| |