Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
Json::ValueIteratorBase Class Reference

base class for Value iterators. More...

#include <jsoncpp.h>

Inheritance diagram for Json::ValueIteratorBase:

Public Types

typedef unsigned int vcl_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. "" if it is not an objectValue. 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)
 

Detailed Description

base class for Value iterators.

Definition at line 1228 of file jsoncpp.h.

Member Typedef Documentation

Definition at line 1232 of file jsoncpp.h.

Definition at line 1231 of file jsoncpp.h.

Constructor & Destructor Documentation

Json::ValueIteratorBase::ValueIteratorBase ( )

Definition at line 1245 of file jsoncpp.cpp.

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

Definition at line 1261 of file jsoncpp.cpp.

Member Function Documentation

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

Definition at line 1321 of file jsoncpp.cpp.

Referenced by operator-().

void Json::ValueIteratorBase::copy ( const SelfType other)
protected
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.

Definition at line 1412 of file jsoncpp.cpp.

bool Json::ValueIteratorBase::isEqual ( const SelfType other) const
protected

Definition at line 1358 of file jsoncpp.cpp.

References equals().

Referenced by operator!=(), and operator==().

Value Json::ValueIteratorBase::key ( ) const

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

Definition at line 1388 of file jsoncpp.cpp.

References memberName().

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

Return the member name of the referenced Value. "" if it is not an objectValue.

Definition at line 1428 of file jsoncpp.cpp.

Referenced by key().

bool Json::ValueIteratorBase::operator!= ( const SelfType other) const
inline

Definition at line 1248 of file jsoncpp.h.

References isEqual().

difference_type Json::ValueIteratorBase::operator- ( const SelfType other) const
inline

Definition at line 1253 of file jsoncpp.h.

References computeDistance().

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

Definition at line 1243 of file jsoncpp.h.

References isEqual().


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