Iterator for object and array value. More...
#include <value.h>
Inherits Json::ValueIteratorBase.
Public Types | |
typedef unsigned int | size_t |
typedef int | difference_type |
typedef Value & | reference |
typedef Value * | pointer |
typedef ValueIterator | 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 |
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. -1 if it is not an arrayValue. | |
const char * | memberName () const |
Return the member name of the referenced Value. "" if it is not an objectValue. | |
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) |
Friends | |
class | Value |
Iterator for object and array value.
typedef unsigned int Json::ValueIterator::size_t |
Reimplemented from Json::ValueIteratorBase.
typedef int Json::ValueIterator::difference_type |
Reimplemented from Json::ValueIteratorBase.
typedef Value& Json::ValueIterator::reference |
typedef Value* Json::ValueIterator::pointer |
Reimplemented from Json::ValueIteratorBase.
Json::ValueIterator::ValueIterator | ( | const ValueConstIterator & | other | ) |
Json::ValueIterator::ValueIterator | ( | const ValueIterator & | other | ) |
ValueIterator & Json::ValueIterator::operator= | ( | const SelfType & | other | ) |
SelfType Json::ValueIterator::operator++ | ( | int | ) |
SelfType Json::ValueIterator::operator-- | ( | int | ) |
SelfType& Json::ValueIterator::operator-- | ( | ) |
SelfType& Json::ValueIterator::operator++ | ( | ) |
reference Json::ValueIterator::operator* | ( | ) | const |
bool Json::ValueIteratorBase::operator== | ( | const SelfType & | other | ) | const [inherited] |
bool Json::ValueIteratorBase::operator!= | ( | const SelfType & | other | ) | const [inherited] |
difference_type Json::ValueIteratorBase::operator- | ( | const SelfType & | other | ) | const [inherited] |
Value Json::ValueIteratorBase::key | ( | ) | const [inherited] |
Return either the index or the member name of the referenced value as a Value.
UInt Json::ValueIteratorBase::index | ( | ) | const [inherited] |
Return the index of the referenced Value. -1 if it is not an arrayValue.
const char * Json::ValueIteratorBase::memberName | ( | ) | const [inherited] |
Return the member name of the referenced Value. "" if it is not an objectValue.
Value & Json::ValueIteratorBase::deref | ( | ) | const [protected, inherited] |
void Json::ValueIteratorBase::increment | ( | ) | [protected, inherited] |
void Json::ValueIteratorBase::decrement | ( | ) | [protected, inherited] |
ValueIteratorBase::difference_type Json::ValueIteratorBase::computeDistance | ( | const SelfType & | other | ) | const [protected, inherited] |
bool Json::ValueIteratorBase::isEqual | ( | const SelfType & | other | ) | const [protected, inherited] |
void Json::ValueIteratorBase::copy | ( | const SelfType & | other | ) | [protected, inherited] |
friend class Value [friend] |