Myra Canyon  v0.0.1-768
network control
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Json::ValueConstIterator Class Reference

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

#include "json.h"

Inheritance diagram for Json::ValueConstIterator:
Collaboration diagram for Json::ValueConstIterator:

Public Types

typedef const Value value_type
 
typedef unsigned int size_t
 
typedef int difference_type
 
typedef const Valuereference
 
typedef const Valuepointer
 
typedef ValueConstIterator SelfType
 
typedef
std::bidirectional_iterator_tag 
iterator_category
 

Public Member Functions

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

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

Friends

class Value
 

Detailed Description

const iterator for object and array value.

Member Typedef Documentation

typedef std::bidirectional_iterator_tag Json::ValueIteratorBase::iterator_category
inherited
typedef unsigned int Json::ValueConstIterator::size_t

Constructor & Destructor Documentation

Json::ValueConstIterator::ValueConstIterator ( )
Json::ValueConstIterator::ValueConstIterator ( const Value::ObjectValues::iterator &  current)
explicitprivate

Use by Value to create an iterator.

Member Function Documentation

ValueIteratorBase::difference_type Json::ValueIteratorBase::computeDistance ( const SelfType other) const
protectedinherited
void Json::ValueIteratorBase::copy ( const SelfType other)
protectedinherited

Here is the caller graph for this function:

void Json::ValueIteratorBase::decrement ( )
protectedinherited
Value & Json::ValueIteratorBase::deref ( ) const
protectedinherited
void Json::ValueIteratorBase::increment ( )
protectedinherited
UInt Json::ValueIteratorBase::index ( ) const
inherited

Return the index of the referenced Value. -1 if it is not an arrayValue.

Here is the call graph for this function:

bool Json::ValueIteratorBase::isEqual ( const SelfType other) const
protectedinherited
Value Json::ValueIteratorBase::key ( ) const
inherited

Return either the index or the member name of the referenced value as a Value.

Here is the call graph for this function:

const char * Json::ValueIteratorBase::memberName ( ) const
inherited

Return the member name of the referenced Value.

"" if it is not an objectValue.

Here is the caller graph for this function:

bool Json::ValueIteratorBase::operator!= ( const SelfType other) const
inlineinherited
reference Json::ValueConstIterator::operator* ( ) const
inline
SelfType Json::ValueConstIterator::operator++ ( int  )
inline
SelfType& Json::ValueConstIterator::operator++ ( )
inline
difference_type Json::ValueIteratorBase::operator- ( const SelfType other) const
inlineinherited
SelfType Json::ValueConstIterator::operator-- ( int  )
inline
SelfType& Json::ValueConstIterator::operator-- ( )
inline
pointer Json::ValueConstIterator::operator-> ( ) const
inline
ValueConstIterator & Json::ValueConstIterator::operator= ( const ValueIteratorBase other)

Here is the call graph for this function:

bool Json::ValueIteratorBase::operator== ( const SelfType other) const
inlineinherited

Friends And Related Function Documentation

friend class Value
friend

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