Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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

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)
 

Detailed Description

base class for Value iterators.

Definition at line 1228 of file jsoncpp.h.

Member Typedef Documentation

◆ difference_type

Definition at line 1232 of file jsoncpp.h.

◆ SelfType

◆ vcl_size_t

Definition at line 1231 of file jsoncpp.h.

Constructor & Destructor Documentation

◆ ValueIteratorBase() [1/2]

Json::ValueIteratorBase::ValueIteratorBase ( )

◆ ValueIteratorBase() [2/2]

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

Definition at line 1261 of file jsoncpp.cpp.

References ValueIteratorBase().

Member Function Documentation

◆ computeDistance()

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

Definition at line 1321 of file jsoncpp.cpp.

◆ copy()

void Json::ValueIteratorBase::copy ( const SelfType &  other)
protected

◆ decrement()

void Json::ValueIteratorBase::decrement ( )
protected

Definition at line 1308 of file jsoncpp.cpp.

◆ deref()

Value & Json::ValueIteratorBase::deref ( ) const
protected

Definition at line 1282 of file jsoncpp.cpp.

◆ increment()

void Json::ValueIteratorBase::increment ( )
protected

Definition at line 1295 of file jsoncpp.cpp.

◆ index()

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.

Referenced by Json::releaseStringValue().

◆ isEqual()

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

Definition at line 1358 of file jsoncpp.cpp.

References equals().

◆ key()

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

◆ 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().

◆ operator!=()

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

Definition at line 1248 of file jsoncpp.h.

◆ operator-()

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

Definition at line 1253 of file jsoncpp.h.

◆ operator==()

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

Definition at line 1243 of file jsoncpp.h.


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