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

Member Typedef Documentation

Definition at line 1012 of file value.h.

Definition at line 1014 of file value.h.

Definition at line 1013 of file value.h.

Definition at line 1015 of file value.h.

typedef unsigned int Json::ValueIterator::size_t

Definition at line 1011 of file value.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 1059 of file value.h.

1060  {
1061  return deref();
1062  }
Value & deref() const
SelfType Json::ValueIterator::operator++ ( int  )
inline

Definition at line 1033 of file value.h.

References groupFilesInBlocks::temp.

1034  {
1035  SelfType temp( *this );
1036  ++*this;
1037  return temp;
1038  }
ValueIterator SelfType
Definition: value.h:1015
SelfType& Json::ValueIterator::operator++ ( void  )
inline

Definition at line 1053 of file value.h.

1054  {
1055  increment();
1056  return *this;
1057  }
SelfType Json::ValueIterator::operator-- ( int  )
inline

Definition at line 1040 of file value.h.

References groupFilesInBlocks::temp.

1041  {
1042  SelfType temp( *this );
1043  --*this;
1044  return temp;
1045  }
ValueIterator SelfType
Definition: value.h:1015
SelfType& Json::ValueIterator::operator-- ( )
inline

Definition at line 1047 of file value.h.

1048  {
1049  decrement();
1050  return *this;
1051  }
SelfType& Json::ValueIterator::operator= ( const SelfType other)

Friends And Related Function Documentation

friend class Value
friend

Definition at line 1009 of file value.h.