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

base class for Value iterators. More...

#include "json.h"

Inheritance diagram for Json::ValueIteratorBase:
Collaboration diagram for Json::ValueIteratorBase:

Public Types

typedef
std::bidirectional_iterator_tag 
iterator_category
 
typedef unsigned int size_t
 
typedef int difference_type
 
typedef ValueIteratorBase SelfType
 

Public Member Functions

 ValueIteratorBase ()
 
 ValueIteratorBase (const Value::ObjectValues::iterator &current)
 
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 Attributes

Value::ObjectValues::iterator current_
 
bool isNull_
 

Detailed Description

base class for Value iterators.

Member Typedef Documentation

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

Constructor & Destructor Documentation

Json::ValueIteratorBase::ValueIteratorBase ( )
Json::ValueIteratorBase::ValueIteratorBase ( const Value::ObjectValues::iterator &  current)
explicit

Member Function Documentation

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

Here is the caller graph for this function:

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

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
protected
Value Json::ValueIteratorBase::key ( ) const

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

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
inline
difference_type Json::ValueIteratorBase::operator- ( const SelfType other) const
inline
bool Json::ValueIteratorBase::operator== ( const SelfType other) const
inline

Member Data Documentation

Value::ObjectValues::iterator Json::ValueIteratorBase::current_
private
bool Json::ValueIteratorBase::isNull_
private

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