cocos2d-x  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ValueConstIterator Class Reference

const iterator for object and array value. More...

#include <value.h>

Inheritance diagram for ValueConstIterator:
ValueIteratorBase

Public Types

typedef unsigned int size_t
typedef int difference_type
typedef const Valuereference
typedef const Valuepointer
typedef ValueConstIterator SelfType
- Public Types inherited from ValueIteratorBase
typedef unsigned int size_t
typedef int difference_type
typedef ValueIteratorBase SelfType

Public Member Functions

 ValueConstIterator ()
SelfTypeoperator= (const ValueIteratorBase &other)
SelfType operator++ (int)
SelfType operator-- (int)
SelfTypeoperator-- ()
SelfTypeoperator++ ()
reference operator* () const
- Public Member Functions inherited from ValueIteratorBase
 ValueIteratorBase ()
 ValueIteratorBase (const Value::ObjectValues::iterator &current)
bool operator== (const SelfType &other) const
bool operator!= (const SelfType &other) const
difference_type operator- (const SelfType &other) const
Value key () const
 Return either the index or the member name of the referenced value as a Value. More...
 
UInt index () const
 Return the index of the referenced Value. -1 if it is not an arrayValue. More...
 
const char * memberName () const
 Return the member name of the referenced Value. "" if it is not an objectValue. More...
 

Friends

class Value

Additional Inherited Members

- Protected Member Functions inherited from ValueIteratorBase
Valuederef () const
void increment ()
void decrement ()
difference_type computeDistance (const SelfType &other) const
bool isEqual (const SelfType &other) const
void copy (const SelfType &other)

Detailed Description

const iterator for object and array value.

Member Typedef Documentation

typedef int difference_type
typedef const Value* pointer
typedef const Value& reference
typedef unsigned int size_t

Constructor & Destructor Documentation

Member Function Documentation

reference operator* ( ) const
inline
SelfType operator++ ( int  )
inline
SelfType& operator++ ( )
inline
SelfType operator-- ( int  )
inline
SelfType& operator-- ( )
inline
SelfType& operator= ( const ValueIteratorBase other)

Friends And Related Function Documentation

friend class Value
friend

The documentation for this class was generated from the following file: