HDK
|
Traverse an array object in the parser. More...
#include <UT_JSONParser.h>
Public Member Functions | |
iterator () | |
iterator (const iterator &src) | |
~iterator () | |
const iterator & | operator= (const iterator &src) |
iterator & | operator++ () |
++iterator More... | |
iterator & | operator++ (int) |
bool | atEnd () const |
void | advance () |
template<typename T > | |
bool | getKey (T &key) |
template<typename T > | |
bool | getLowerKey (T &key) |
Get a lower case map key (for case insensitive maps) More... | |
bool | getErrorState () const |
UT_JID | getUniformArrayType () const |
Return the uniform array type (UT_JID_NULL if not uniform array) More... | |
int64 | getUniformArraySize () const |
Return the number of elements in the uniform array (0 if empty) More... | |
int64 | getUniformArrayUnreadSize () const |
template<typename T > | |
bool | readUniformArray (T *buffer, int64 size) |
Friends | |
class | UT_JSONParser |
Traverse an array object in the parser.
This class will iterate over an array. There is no object associated with the array, it's up to the caller to load the objects
There is no rewind() operation available on this iterator
Definition at line 539 of file UT_JSONParser.h.
|
inline |
Definition at line 542 of file UT_JSONParser.h.
Definition at line 549 of file UT_JSONParser.h.
|
inline |
Definition at line 553 of file UT_JSONParser.h.
|
inline |
Definition at line 571 of file UT_JSONParser.h.
|
inline |
Definition at line 570 of file UT_JSONParser.h.
|
inline |
The error state records whether any errors were encountered during the iterator's parse operations.
Definition at line 621 of file UT_JSONParser.h.
|
inline |
Get the key from the map. If we're iterating over an array, this assumes that the next array element will be a string token. This allows for "ordered" maps to be stored in an array of tuples (string,value)
The T template can be either UT_WorkBuffer or UT_StringHolder
Definition at line 590 of file UT_JSONParser.h.
|
inline |
Get a lower case map key (for case insensitive maps)
Definition at line 609 of file UT_JSONParser.h.
|
inline |
Return the number of elements in the uniform array (0 if empty)
Definition at line 630 of file UT_JSONParser.h.
|
inline |
Return the uniform array type (UT_JID_NULL if not uniform array)
Definition at line 624 of file UT_JSONParser.h.
|
inline |
Return the remaining number of elements in the uniform array (0 if empty)
Definition at line 637 of file UT_JSONParser.h.
|
inline |
++iterator
Definition at line 565 of file UT_JSONParser.h.
Caution: The post-increment operator has side effects and is equivalent to the iterator after the increment is performed.
Definition at line 568 of file UT_JSONParser.h.
Definition at line 555 of file UT_JSONParser.h.
|
inline |
Read uniform array straight into a buffer. This template only works for int8, int16, int32, int64, fpreal16, fpreal32, fpreal64.
Definition at line 647 of file UT_JSONParser.h.
|
friend |
Definition at line 696 of file UT_JSONParser.h.