Json::ValueConstIterator Class Reference

const iterator for object and array value. More...

#include <value.h>

Inherits Json::ValueIteratorBase.

List of all members.

Public Types

typedef unsigned int size_t
typedef int difference_type
typedef const Valuereference
typedef const Valuepointer
typedef ValueConstIterator SelfType

Public Member Functions

 ValueConstIterator ()
SelfTypeoperator= (const ValueIteratorBase &other)
SelfType operator++ (int)
SelfType operator-- (int)
SelfTypeoperator-- ()
SelfTypeoperator++ ()
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

Valuederef () 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

Detailed Description

const iterator for object and array value.


Member Typedef Documentation

typedef unsigned int Json::ValueConstIterator::size_t

Reimplemented from Json::ValueIteratorBase.


Constructor & Destructor Documentation

Json::ValueConstIterator::ValueConstIterator (  ) 

Member Function Documentation

ValueConstIterator & Json::ValueConstIterator::operator= ( const ValueIteratorBase other  ) 
SelfType Json::ValueConstIterator::operator++ ( int   ) 
SelfType Json::ValueConstIterator::operator-- ( int   ) 
SelfType& Json::ValueConstIterator::operator-- (  ) 
SelfType& Json::ValueConstIterator::operator++ (  ) 
reference Json::ValueConstIterator::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]

Friends And Related Function Documentation

friend class Value [friend]

Member Data Documentation


The documentation for this class was generated from the following files: