CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | 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 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
 
SelfTypeoperator++ ()
 
SelfType operator++ (int)
 
SelfTypeoperator-- ()
 
SelfType operator-- (int)
 
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)
 

Public Attributes

const typedef Valuepointer
 
const typedef Valuereference
 

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.

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

903 { return deref(); }

References Json::ValueIteratorBase::deref().

◆ operator++() [1/2]

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

Definition at line 898 of file value.h.

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

References Json::ValueIteratorBase::increment().

◆ operator++() [2/2]

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

Definition at line 881 of file value.h.

881  {
882  SelfType temp(*this);
883  ++*this;
884  return temp;
885  }

References groupFilesInBlocks::temp.

◆ operator--() [1/2]

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

Definition at line 893 of file value.h.

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

References Json::ValueIteratorBase::decrement().

◆ operator--() [2/2]

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

Definition at line 887 of file value.h.

887  {
888  SelfType temp(*this);
889  --*this;
890  return temp;
891  }

References groupFilesInBlocks::temp.

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

Member Data Documentation

◆ pointer

const typedef Value* Json::ValueConstIterator::pointer

Definition at line 864 of file value.h.

◆ reference

const typedef Value& Json::ValueConstIterator::reference

Definition at line 863 of file value.h.

groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
Json::ValueIteratorBase::decrement
void decrement()
Json::ValueIteratorBase::deref
Value & deref() const
Json::ValueConstIterator::SelfType
ValueConstIterator SelfType
Definition: value.h:865
Json::ValueIteratorBase::increment
void increment()