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 541 of file UT_JSONParser.h.
|
inline |
Definition at line 544 of file UT_JSONParser.h.
|
inline |
Definition at line 551 of file UT_JSONParser.h.
|
inline |
Definition at line 555 of file UT_JSONParser.h.
|
inline |
Definition at line 573 of file UT_JSONParser.h.
|
inline |
Definition at line 572 of file UT_JSONParser.h.
|
inline |
The error state records whether any errors were encountered during the iterator's parse operations.
Definition at line 623 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 592 of file UT_JSONParser.h.
|
inline |
Get a lower case map key (for case insensitive maps)
Definition at line 611 of file UT_JSONParser.h.
|
inline |
Return the number of elements in the uniform array (0 if empty)
Definition at line 632 of file UT_JSONParser.h.
|
inline |
Return the uniform array type (UT_JID_NULL if not uniform array)
Definition at line 626 of file UT_JSONParser.h.
|
inline |
Return the remaining number of elements in the uniform array (0 if empty)
Definition at line 639 of file UT_JSONParser.h.
|
inline |
++iterator
Definition at line 567 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 570 of file UT_JSONParser.h.
Definition at line 557 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 649 of file UT_JSONParser.h.
|
friend |
Definition at line 698 of file UT_JSONParser.h.