Iterator for object and array value. More...
#include "json.h"
Public Types | |
typedef Value | value_type |
typedef unsigned int | size_t |
typedef int | difference_type |
typedef Value & | reference |
typedef Value * | pointer |
typedef ValueIterator | SelfType |
typedef std::bidirectional_iterator_tag | iterator_category |
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 |
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. -1 if it is not an arrayValue. More... | |
const char * | memberName () const |
Return the member name of the referenced Value. More... | |
Protected Member Functions | |
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) |
Private Member Functions | |
ValueIterator (const Value::ObjectValues::iterator ¤t) | |
Friends | |
class | Value |
Iterator for object and array value.
typedef int Json::ValueIterator::difference_type |
|
inherited |
typedef Value* Json::ValueIterator::pointer |
typedef Value& Json::ValueIterator::reference |
typedef unsigned int Json::ValueIterator::size_t |
typedef Value Json::ValueIterator::value_type |
Json::ValueIterator::ValueIterator | ( | ) |
Json::ValueIterator::ValueIterator | ( | const ValueConstIterator & | other | ) |
Json::ValueIterator::ValueIterator | ( | const ValueIterator & | other | ) |
|
explicitprivate |
Use by Value to create an iterator.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
Return the index of the referenced Value. -1 if it is not an arrayValue.
|
protectedinherited |
|
inherited |
Return either the index or the member name of the referenced value as a Value.
|
inherited |
Return the member name of the referenced Value.
"" if it is not an objectValue.
|
inlineinherited |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inline |
|
inline |
|
inline |
ValueIterator & Json::ValueIterator::operator= | ( | const SelfType & | other | ) |
|
inlineinherited |
|
friend |