JsonCpp project page JsonCpp home page

Public Types | Public Member Functions | Public Attributes | Friends | List of all members
Json::ValueConstIterator Class Reference

const iterator for object and array value. More...

#include <json/value.h>

+ Inheritance diagram for Json::ValueConstIterator:
+ Collaboration diagram for Json::ValueConstIterator:

Public Types

typedef unsigned int size_t
 
typedef int difference_type
 
typedef ValueConstIterator SelfType
 
- Public Types inherited from Json::ValueIteratorBase
typedef unsigned int size_t
 
typedef int difference_type
 
typedef ValueIteratorBase SelfType
 

Public Member Functions

 ValueConstIterator ()
 
SelfTypeoperator= (const ValueIteratorBase &other)
 
SelfType operator++ (int)
 
SelfType operator-- (int)
 
SelfTypeoperator-- ()
 
SelfTypeoperator++ ()
 
reference operator* () const
 
- Public Member Functions inherited from Json::ValueIteratorBase
 ValueIteratorBase ()
 
 ValueIteratorBase (const ValueInternalArray::IteratorState &state)
 
 ValueIteratorBase (const ValueInternalMap::IteratorState &state)
 
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...
 

Public Attributes

const typedef Valuereference
 
const typedef Valuepointer
 

Friends

class Value
 

Additional Inherited Members

- Protected Member Functions inherited from Json::ValueIteratorBase
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

const iterator for object and array value.

Definition at line 949 of file value.h.

Member Typedef Documentation

◆ difference_type

Definition at line 954 of file value.h.

◆ SelfType

Definition at line 957 of file value.h.

◆ size_t

typedef unsigned int Json::ValueConstIterator::size_t

Definition at line 953 of file value.h.

Constructor & Destructor Documentation

◆ ValueConstIterator()

ValueConstIterator::ValueConstIterator ( )

Definition at line 217 of file json_valueiterator.inl.

Member Function Documentation

◆ operator*()

reference Json::ValueConstIterator::operator* ( ) const
inline

Definition at line 998 of file value.h.

References Json::ValueIteratorBase::deref().

◆ operator++() [1/2]

SelfType& Json::ValueConstIterator::operator++ ( )
inline

Definition at line 992 of file value.h.

References Json::ValueIteratorBase::increment().

◆ operator++() [2/2]

SelfType Json::ValueConstIterator::operator++ ( int  )
inline

Definition at line 972 of file value.h.

◆ operator--() [1/2]

SelfType& Json::ValueConstIterator::operator-- ( )
inline

Definition at line 986 of file value.h.

References Json::ValueIteratorBase::decrement().

◆ operator--() [2/2]

SelfType Json::ValueConstIterator::operator-- ( int  )
inline

Definition at line 979 of file value.h.

◆ operator=()

ValueConstIterator & ValueConstIterator::operator= ( const ValueIteratorBase other)

Definition at line 240 of file json_valueiterator.inl.

References Json::ValueIteratorBase::copy().

Friends And Related Function Documentation

◆ Value

friend class Value
friend

Definition at line 951 of file value.h.

Member Data Documentation

◆ pointer

const typedef Value* Json::ValueConstIterator::pointer

Definition at line 956 of file value.h.

◆ reference

const typedef Value& Json::ValueConstIterator::reference

Definition at line 955 of file value.h.


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

SourceForge Logo hosts this site. Send comments to:
Json-cpp Developers