base class for Value iterators.
More...
|
typedef std::bidirectional_iterator_tag | iterator_category |
|
typedef unsigned int | size_t |
|
typedef int | difference_type |
|
typedef ValueIteratorBase | SelfType |
|
|
bool | operator== (const SelfType &other) const |
|
bool | operator!= (const SelfType &other) const |
|
difference_type | operator- (const SelfType &other) const |
|
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. More...
|
|
char const * | memberName () const |
| Return the member name of the referenced Value. More...
|
|
char const * | memberName (char const **end) const |
| Return the member name of the referenced Value, or NULL if it is not an objectValue. More...
|
|
| ValueIteratorBase (const Value::ObjectValues::iterator ¤t) |
|
|
Value & | deref () const |
|
void | increment () |
|
void | decrement () |
|
difference_type | computeDistance (const SelfType &other) const |
|
bool | isEqual (const SelfType &other) const |
|
void | copy (const SelfType &other) |
|
|
Value::ObjectValues::iterator | current_ |
|
bool | isNull_ |
|
base class for Value iterators.
Definition at line 709 of file value.h.
◆ memberName() [1/2]
char const* memberName |
( |
| ) |
const |
Return the member name of the referenced Value.
"" if it is not an objectValue.
- Deprecated:
- This cannot be used for UTF-8 strings, since there can be embedded nulls.
◆ memberName() [2/2]
char const* memberName |
( |
char const ** |
end | ) |
const |
Return the member name of the referenced Value, or NULL if it is not an objectValue.
- Note
- Better version than memberName(). Allows embedded nulls.
◆ name()
JSONCPP_STRING name |
( |
| ) |
const |
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.