Public Types | Public Member Functions | Private Member Functions | Friends | List of all members
Json::ValueIterator Class Reference

Iterator for object and array value. More...

#include <json.h>

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

Public Types

typedef int difference_type
 
typedef Valuepointer
 
typedef Valuereference
 
typedef ValueIterator SelfType
 
typedef unsigned int size_t
 
- Public Types inherited from Json::ValueIteratorBase
typedef int difference_type
 
typedef ValueIteratorBase SelfType
 
typedef unsigned int size_t
 

Public Member Functions

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

Private Member Functions

 ValueIterator (const Value::ObjectValues::iterator &current)
 

Friends

class Value
 

Additional Inherited Members

- Protected Member Functions inherited from Json::ValueIteratorBase
difference_type computeDistance (const SelfType &other) const
 
void copy (const SelfType &other)
 
void decrement ()
 
Valuederef () const
 
void increment ()
 
bool isEqual (const SelfType &other) const
 

Detailed Description

Iterator for object and array value.

Definition at line 1356 of file json.h.

Member Typedef Documentation

◆ difference_type

Definition at line 1361 of file json.h.

◆ pointer

Definition at line 1363 of file json.h.

◆ reference

Definition at line 1362 of file json.h.

◆ SelfType

Definition at line 1364 of file json.h.

◆ size_t

typedef unsigned int Json::ValueIterator::size_t

Definition at line 1360 of file json.h.

Constructor & Destructor Documentation

◆ ValueIterator() [1/4]

Json::ValueIterator::ValueIterator ( )

Definition at line 1487 of file jsoncpp.cpp.

◆ ValueIterator() [2/4]

Json::ValueIterator::ValueIterator ( const ValueConstIterator other)

Definition at line 1509 of file jsoncpp.cpp.

◆ ValueIterator() [3/4]

Json::ValueIterator::ValueIterator ( const ValueIterator other)

Definition at line 1514 of file jsoncpp.cpp.

◆ ValueIterator() [4/4]

Json::ValueIterator::ValueIterator ( const Value::ObjectValues::iterator &  current)
explicitprivate

Definition at line 1493 of file jsoncpp.cpp.

Member Function Documentation

◆ operator*()

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

Definition at line 1408 of file json.h.

◆ operator++() [1/2]

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

Definition at line 1382 of file json.h.

◆ operator++() [2/2]

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

Definition at line 1402 of file json.h.

◆ operator--() [1/2]

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

Definition at line 1389 of file json.h.

◆ operator--() [2/2]

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

Definition at line 1396 of file json.h.

◆ operator=()

ValueIterator & Json::ValueIterator::operator= ( const SelfType other)

Definition at line 1520 of file jsoncpp.cpp.

Friends And Related Function Documentation

◆ Value

friend class Value
friend

Definition at line 1358 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