json test
ValueConstIterator Class Reference
const iterator for object and array value. More...
#include <value.h>
Inherits Json::ValueIteratorBase.
Public Member Functions | |
Value | key () const |
Return either the index or the member name of the referenced value as a Value. | |
UInt | index () const |
Return the index of the referenced Value, or -1 if it is not an arrayValue. | |
JSONCPP_STRING | name () const |
Return the member name of the referenced Value, or "" if it is not an objectValue. | |
JSONCPP_DEPRECATED ("Use `key = name();` instead.") char const *memberName() const | |
Return the member name of the referenced Value. | |
char const * | memberName (char const **end) const |
Return the member name of the referenced Value, or NULL if it is not an objectValue. |
Detailed Description
const iterator for object and array value.
Definition at line 774 of file value.h.
Member Function Documentation
UInt index | ( | ) | const [inherited] |
Return the index of the referenced Value, or -1 if it is not an arrayValue.
Definition at line 88 of file json_valueiterator.inl.
JSONCPP_DEPRECATED | ( | ) | [inherited] |
Return the member name of the referenced Value.
"" if it is not an objectValue.
Value key | ( | ) | const [inherited] |
Return either the index or the member name of the referenced value as a Value.
Definition at line 78 of file json_valueiterator.inl.
char const * memberName | ( | char const ** | end ) | const [inherited] |
Return the member name of the referenced Value, or NULL if it is not an objectValue.
- Note:
- Better version than memberName(). Allows embedded nulls.
Definition at line 108 of file json_valueiterator.inl.
JSONCPP_STRING name | ( | ) | const [inherited] |
Return the member name of the referenced Value, or "" if it is not an objectValue.
- Note:
- Avoid `c_str()` on result, as embedded zeroes are possible.
Definition at line 95 of file json_valueiterator.inl.
Generated on Tue Jul 12 2022 21:24:54 by 1.7.2