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

base class for Value iterators. More...

#include <json.h>

Inheritance diagram for Json::ValueIteratorBase:
Inheritance graph
[legend]

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 1228 of file json.h.

Member Typedef Documentation

◆ difference_type

Definition at line 1232 of file json.h.

◆ SelfType

Definition at line 1233 of file json.h.

◆ size_t

typedef unsigned int Json::ValueIteratorBase::size_t

Definition at line 1231 of file json.h.

Constructor & Destructor Documentation

◆ ValueIteratorBase() [1/2]

Json::ValueIteratorBase::ValueIteratorBase ( )

Definition at line 1245 of file jsoncpp.cpp.

◆ ValueIteratorBase() [2/2]

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

Definition at line 1261 of file jsoncpp.cpp.

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

Definition at line 1375 of file jsoncpp.cpp.

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

◆ isEqual()

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

Definition at line 1358 of file jsoncpp.cpp.

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

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

◆ operator!=()

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

Definition at line 1248 of file json.h.

◆ operator-()

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

Definition at line 1253 of file json.h.

◆ operator==()

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

Definition at line 1243 of file json.h.

Member Data Documentation

◆ current_

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

Definition at line 1282 of file json.h.

◆ isNull_

bool Json::ValueIteratorBase::isNull_
private

Definition at line 1284 of file json.h.


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


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Dec 12 2022 03:20:10