Iterator for object and array value. More...
#include <json/value.h>
Inheritance diagram for Json::ValueIterator:
Collaboration diagram for Json::ValueIterator:Public Types | |
| typedef Value | value_type |
| typedef unsigned int | size_t |
| typedef int | difference_type |
| typedef Value & | reference |
| typedef Value * | pointer |
| typedef ValueIterator | SelfType |
Public Types inherited from Json::ValueIteratorBase | |
| typedef std::bidirectional_iterator_tag | iterator_category |
| typedef unsigned int | size_t |
| typedef int | difference_type |
| typedef ValueIteratorBase | SelfType |
Public Member Functions | |
| ValueIterator () | |
| ValueIterator (const ValueConstIterator &other) | |
| ValueIterator (const ValueIterator &other) | |
| SelfType & | operator= (const SelfType &other) |
| SelfType | operator++ (int) |
| SelfType | operator-- (int) |
| SelfType & | operator-- () |
| SelfType & | operator++ () |
| reference | operator* () const |
| pointer | operator-> () const |
Public Member Functions inherited from Json::ValueIteratorBase | |
| 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. More... | |
| UInt | index () const |
| Return the index of the referenced Value, or -1 if it is not an arrayValue. More... | |
| String | name () const |
| Return the member name of the referenced Value, or "" if it is not an objectValue. More... | |
| __declspec (deprecated("Use `key = name();` instead.")) 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 () | |
| ValueIteratorBase (const Value::ObjectValues::iterator ¤t) | |
Friends | |
| class | Value |
Additional Inherited Members | |
Protected Member Functions inherited from Json::ValueIteratorBase | |
| 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) |
| typedef int Json::ValueIterator::difference_type |
| typedef Value* Json::ValueIterator::pointer |
| typedef Value& Json::ValueIterator::reference |
| typedef unsigned int Json::ValueIterator::size_t |
| typedef Value Json::ValueIterator::value_type |
|
default |
|
explicit |
Definition at line 147 of file json_valueiterator.inl.
References Json::throwRuntimeError().
|
default |
| ValueIterator & Json::ValueIterator::operator= | ( | const SelfType & | other | ) |
Definition at line 154 of file json_valueiterator.inl.
References Json::ValueIteratorBase::copy().
1.8.16