CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Attributes
Json::ValueIteratorBase Class Reference

base class for Value iterators. More...

#include <value.h>

Inheritance diagram for Json::ValueIteratorBase:
Json::ValueConstIterator Json::ValueIterator

Public Types

typedef int difference_type
 
typedef ValueIteratorBase SelfType
 
typedef unsigned int size_t
 

Public Member Functions

UInt index () const
 Return the index of the referenced Value. -1 if it is not an arrayValue. More...
 
Value key () const
 Return either the index or the member name of the referenced value as a Value. More...
 
const char * memberName () const
 Return the member name of the referenced Value. "" if it is not an objectValue. More...
 
bool operator!= (const SelfType &other) const
 
difference_type operator- (const SelfType &other) const
 
bool operator== (const SelfType &other) const
 
 ValueIteratorBase ()
 
 ValueIteratorBase (const Value::ObjectValues::iterator &current)
 

Protected Member Functions

difference_type computeDistance (const SelfType &other) const
 
void copy (const SelfType &other)
 
void decrement ()
 
Valuederef () const
 
void increment ()
 
bool isEqual (const SelfType &other) const
 

Private Attributes

Value::ObjectValues::iterator current_
 
bool isNull_
 

Detailed Description

base class for Value iterators.

Definition at line 798 of file value.h.

Member Typedef Documentation

◆ difference_type

Definition at line 801 of file value.h.

◆ SelfType

Definition at line 802 of file value.h.

◆ size_t

typedef unsigned int Json::ValueIteratorBase::size_t

Definition at line 800 of file value.h.

Constructor & Destructor Documentation

◆ ValueIteratorBase() [1/2]

Json::ValueIteratorBase::ValueIteratorBase ( )

◆ ValueIteratorBase() [2/2]

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

Member Function Documentation

◆ computeDistance()

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

Referenced by operator-().

◆ copy()

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

◆ decrement()

void Json::ValueIteratorBase::decrement ( )
protected

◆ deref()

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

◆ increment()

void Json::ValueIteratorBase::increment ( )
protected

◆ index()

UInt Json::ValueIteratorBase::index ( ) const

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

Referenced by BeautifulSoup.PageElement::insert().

◆ isEqual()

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

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

◆ key()

Value Json::ValueIteratorBase::key ( ) const

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

◆ memberName()

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

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

◆ operator!=()

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

Definition at line 814 of file value.h.

814 { return !isEqual(other); }

References isEqual(), and trackingPlots::other.

◆ operator-()

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

Definition at line 816 of file value.h.

816 { return computeDistance(other); }

References computeDistance(), and trackingPlots::other.

◆ operator==()

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

Definition at line 812 of file value.h.

812 { return isEqual(other); }

References isEqual(), and trackingPlots::other.

Member Data Documentation

◆ current_

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

Definition at line 842 of file value.h.

◆ isNull_

bool Json::ValueIteratorBase::isNull_
private

Definition at line 844 of file value.h.

Json::ValueIteratorBase::isEqual
bool isEqual(const SelfType &other) const
Json::ValueIteratorBase::computeDistance
difference_type computeDistance(const SelfType &other) const
trackingPlots.other
other
Definition: trackingPlots.py:1467