CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 949 of file value.h.

Member Typedef Documentation

Definition at line 954 of file value.h.

Definition at line 956 of file value.h.

Definition at line 955 of file value.h.

Definition at line 957 of file value.h.

typedef unsigned int Json::ValueConstIterator::size_t

Definition at line 953 of file value.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 998 of file value.h.

999  {
1000  return deref();
1001  }
Value & deref() const
SelfType Json::ValueConstIterator::operator++ ( int  )
inline

Definition at line 972 of file value.h.

References groupFilesInBlocks::temp.

973  {
974  SelfType temp( *this );
975  ++*this;
976  return temp;
977  }
ValueConstIterator SelfType
Definition: value.h:957
SelfType& Json::ValueConstIterator::operator++ ( void  )
inline

Definition at line 992 of file value.h.

993  {
994  increment();
995  return *this;
996  }
SelfType Json::ValueConstIterator::operator-- ( int  )
inline

Definition at line 979 of file value.h.

References groupFilesInBlocks::temp.

980  {
981  SelfType temp( *this );
982  --*this;
983  return temp;
984  }
ValueConstIterator SelfType
Definition: value.h:957
SelfType& Json::ValueConstIterator::operator-- ( )
inline

Definition at line 986 of file value.h.

987  {
988  decrement();
989  return *this;
990  }
SelfType& Json::ValueConstIterator::operator= ( const ValueIteratorBase other)

Friends And Related Function Documentation

friend class Value
friend

Definition at line 951 of file value.h.