CMS 3D CMS Logo

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

Member Typedef Documentation

Definition at line 913 of file value.h.

Definition at line 915 of file value.h.

Definition at line 914 of file value.h.

Definition at line 916 of file value.h.

typedef unsigned int Json::ValueIterator::size_t

Definition at line 912 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 956 of file value.h.

956 { return deref(); }
Value & deref() const
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
SelfType& Json::ValueIterator::operator++ ( void  )
inline

Definition at line 951 of file value.h.

951  {
952  increment();
953  return *this;
954  }
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
SelfType& Json::ValueIterator::operator-- ( )
inline

Definition at line 946 of file value.h.

946  {
947  decrement();
948  return *this;
949  }
SelfType& Json::ValueIterator::operator= ( const SelfType other)

Friends And Related Function Documentation

friend class Value
friend

Definition at line 909 of file value.h.