HDK
|
UT_JSONValueArray stores a list of UT_JSONValue objects. More...
#include <UT_JSONValueArray.h>
UT_JSONValueArray stores a list of UT_JSONValue objects.
UT_JSONValueArray stores a list of UT_JSONValue objects.
Definition at line 31 of file UT_JSONValueArray.h.
UT_JSONValueArray::UT_JSONValueArray | ( | ) |
UT_JSONValueArray::~UT_JSONValueArray | ( | ) |
|
inline |
Add an element to the array.
Definition at line 105 of file UT_JSONValueArray.h.
UT_JSONValueArray* UT_JSONValueArray::appendArrayChild | ( | ) |
Adds a new array child to this map.
UT_JSONValueMap* UT_JSONValueArray::appendMapChild | ( | ) |
Adds a new map child to this map.
Reference count (for shared arrays).
Definition at line 37 of file UT_JSONValueArray.h.
void UT_JSONValueArray::clear | ( | ) |
Remove and delete all elements.
void UT_JSONValueArray::dump | ( | ) | const |
Dump to stdout (same as save to std::cout)
|
inline |
Return the number of entries in the array.
Definition at line 62 of file UT_JSONValueArray.h.
|
inline |
Access a const entry by index.
Definition at line 73 of file UT_JSONValueArray.h.
|
inline |
Access an entry by index.
Definition at line 75 of file UT_JSONValueArray.h.
SYS_NO_DISCARD_RESULT const UT_JSONValueArray* UT_JSONValueArray::getArray | ( | int64 | i | ) | const |
Access a const array by index.
SYS_NO_DISCARD_RESULT UT_JSONValueArray* UT_JSONValueArray::getArray | ( | int64 | i | ) |
Access an array by index.
SYS_NO_DISCARD_RESULT const UT_JSONValueMap* UT_JSONValueArray::getObject | ( | int64 | i | ) | const |
Access a const object by index.
SYS_NO_DISCARD_RESULT UT_JSONValueMap* UT_JSONValueArray::getObject | ( | int64 | i | ) |
Access an object by index.
|
inline |
Get the number of references to this array.
Definition at line 43 of file UT_JSONValueArray.h.
SYS_HashType UT_JSONValueArray::hash | ( | ) | const |
Import an array of integer values (fails if the array size is too small or if one of the elements of the array cannot be interpreted as an integer).
Import an array of float values (fails if the array size is too small or if one of the elements of the array cannot be interpreted as an integer).
Import an array of integer values (fails if the elements of the array cannot be interpreted as an integer).
Import an array of real values (fails if the elements of the array cannot be interpreted as such).
bool UT_JSONValueArray::import | ( | UT_StringArray & | array | ) | const |
Import an array of string values (fails if the elements of the array cannot be interpreted as such).
void UT_JSONValueArray::insertBefore | ( | UT_JSONValue * | v, |
UT_JSONValue * | after_value | ||
) |
Inserts a value v before the given element after_value.
|
inline |
Check equality
Definition at line 55 of file UT_JSONValueArray.h.
|
inline |
Access a const entry by index.
Definition at line 64 of file UT_JSONValueArray.h.
|
inline |
Access an entry by index.
Definition at line 66 of file UT_JSONValueArray.h.
bool UT_JSONValueArray::operator== | ( | const UT_JSONValueArray & | arr | ) | const |
Check equality
|
inline |
Access a const entry by index.
Definition at line 68 of file UT_JSONValueArray.h.
|
inline |
Access an entry by index.
Definition at line 70 of file UT_JSONValueArray.h.
void UT_JSONValueArray::remove | ( | UT_JSONValue * | v | ) |
Remove and delete an element.
void UT_JSONValueArray::removeLast | ( | ) |
Remove and delete the last added element.
bool UT_JSONValueArray::save | ( | UT_JSONWriter & | os | ) | const |
Save to an output stream.
|
inline |
Return size of the array.
Definition at line 60 of file UT_JSONValueArray.h.