CMS 3D CMS Logo

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

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

#include <value.h>

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

Public Types

typedef int difference_type
 
typedef const Valuepointer
 
typedef const Valuereference
 
typedef ValueConstIterator 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 ValueIteratorBase &other)
 
 ValueConstIterator ()
 
- 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

 ValueConstIterator (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

const iterator for object and array value.

Definition at line 857 of file value.h.

Member Typedef Documentation

◆ difference_type

Definition at line 862 of file value.h.

◆ pointer

Definition at line 864 of file value.h.

◆ reference

Definition at line 863 of file value.h.

◆ SelfType

Definition at line 865 of file value.h.

◆ size_t

typedef unsigned int Json::ValueConstIterator::size_t

Definition at line 861 of file value.h.

Constructor & Destructor Documentation

◆ ValueConstIterator() [1/2]

Json::ValueConstIterator::ValueConstIterator ( )

◆ ValueConstIterator() [2/2]

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

Member Function Documentation

◆ operator*()

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

Definition at line 903 of file value.h.

References Json::ValueIteratorBase::deref().

903 { return deref(); }
Value & deref() const

◆ operator++() [1/2]

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

Definition at line 881 of file value.h.

References groupFilesInBlocks::temp.

881  {
882  SelfType temp(*this);
883  ++*this;
884  return temp;
885  }
ValueConstIterator SelfType
Definition: value.h:865

◆ operator++() [2/2]

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

Definition at line 898 of file value.h.

References Json::ValueIteratorBase::increment().

898  {
899  increment();
900  return *this;
901  }

◆ operator--() [1/2]

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

Definition at line 887 of file value.h.

References groupFilesInBlocks::temp.

887  {
888  SelfType temp(*this);
889  --*this;
890  return temp;
891  }
ValueConstIterator SelfType
Definition: value.h:865

◆ operator--() [2/2]

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

Definition at line 893 of file value.h.

References Json::ValueIteratorBase::decrement().

893  {
894  decrement();
895  return *this;
896  }

◆ operator=()

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

Friends And Related Function Documentation

◆ Value

friend class Value
friend

Definition at line 858 of file value.h.