const iterator for object and array value. More...
#include "json.h"
Public Types | |
typedef const Value | value_type |
typedef unsigned int | size_t |
typedef int | difference_type |
typedef const Value & | reference |
typedef const Value * | pointer |
typedef ValueConstIterator | SelfType |
typedef std::bidirectional_iterator_tag | iterator_category |
Public Member Functions | |
ValueConstIterator () | |
SelfType & | operator= (const ValueIteratorBase &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 | |
ValueConstIterator (const Value::ObjectValues::iterator ¤t) | |
Friends | |
class | Value |
const iterator for object and array value.
typedef int Json::ValueConstIterator::difference_type |
|
inherited |
typedef const Value* Json::ValueConstIterator::pointer |
typedef const Value& Json::ValueConstIterator::reference |
typedef unsigned int Json::ValueConstIterator::size_t |
typedef const Value Json::ValueConstIterator::value_type |
Json::ValueConstIterator::ValueConstIterator | ( | ) |
|
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 |
ValueConstIterator & Json::ValueConstIterator::operator= | ( | const ValueIteratorBase & | other | ) |
|
inlineinherited |
|
friend |