CMS 3D CMS Logo

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

Iterator for object and array value. More...

#include <value.h>

Inheritance diagram for Json::ValueIterator:
Json::ValueIteratorBase

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 908 of file value.h.

Member Typedef Documentation

◆ difference_type

Definition at line 913 of file value.h.

◆ pointer

Definition at line 915 of file value.h.

◆ reference

Definition at line 914 of file value.h.

◆ SelfType

Definition at line 916 of file value.h.

◆ size_t

typedef unsigned int Json::ValueIterator::size_t

Definition at line 912 of file value.h.

Constructor & Destructor Documentation

◆ ValueIterator() [1/4]

Json::ValueIterator::ValueIterator ( )

◆ ValueIterator() [2/4]

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

◆ ValueIterator() [3/4]

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

◆ ValueIterator() [4/4]

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

Member Function Documentation

◆ operator*()

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

Definition at line 956 of file value.h.

References Json::ValueIteratorBase::deref().

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

◆ operator++() [1/2]

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

Definition at line 934 of file value.h.

References groupFilesInBlocks::temp.

934  {
935  SelfType temp(*this);
936  ++*this;
937  return temp;
938  }
ValueIterator SelfType
Definition: value.h:916

◆ operator++() [2/2]

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

Definition at line 951 of file value.h.

References Json::ValueIteratorBase::increment().

951  {
952  increment();
953  return *this;
954  }

◆ operator--() [1/2]

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

Definition at line 940 of file value.h.

References groupFilesInBlocks::temp.

940  {
941  SelfType temp(*this);
942  --*this;
943  return temp;
944  }
ValueIterator SelfType
Definition: value.h:916

◆ operator--() [2/2]

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

Definition at line 946 of file value.h.

References Json::ValueIteratorBase::decrement().

946  {
947  decrement();
948  return *this;
949  }

◆ operator=()

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

Friends And Related Function Documentation

◆ Value

friend class Value
friend

Definition at line 909 of file value.h.