cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ValueIteratorBase Class Reference

base class for Value iterators. More...

#include <value.h>

Inheritance diagram for ValueIteratorBase:
ValueConstIterator ValueIterator

Public Types

typedef unsigned int size_t
typedef int difference_type
typedef ValueIteratorBase SelfType

Public Member Functions

 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
local operator- ( local other)
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...
 

Protected Member Functions

Valuederef () const
void increment ()
void decrement ()
difference_type computeDistance (const SelfType &other) const
local computeDistance ( local other)
bool isEqual (const SelfType &other) const
void copy (const SelfType &other)

Detailed Description

base class for Value iterators.

Member Typedef Documentation

typedef int difference_type
var SelfType
local SelfType
typedef unsigned int size_t
var size_t
local size_t

Constructor & Destructor Documentation

local ValueIteratorBase ( )
ValueIteratorBase ( const Value::ObjectValues::iterator &  current)
explicit
var ValueIteratorBase ( var  current)
explicit
local ValueIteratorBase ( local  current)
explicit

Member Function Documentation

difference_type computeDistance ( const SelfType other) const
protected
var computeDistance ( var  other)
protected
local computeDistance ( local  other)
protected
void copy ( const SelfType other)
protected
var copy ( var  other)
protected
local copy ( local  other)
protected
void decrement ( )
protected
var decrement ( )
protected
local decrement ( )
protected
Value& deref ( ) const
protected
var deref ( )
protected
local deref ( )
protected
void increment ( )
protected
var increment ( )
protected
local increment ( )
protected
UInt index ( ) const

Return the index of the referenced Value. -1 if it is not an arrayValue.

var index ( )

Return the index of the referenced Value. -1 if it is not an arrayValue.

local index ( )

Return the index of the referenced Value. -1 if it is not an arrayValue.

bool isEqual ( const SelfType other) const
protected
var isEqual ( var  other)
protected
local isEqual ( local  other)
protected
Value key ( ) const

Return either the index or the member name of the referenced value as a Value.

var key ( )

Return either the index or the member name of the referenced value as a Value.

local key ( )

Return either the index or the member name of the referenced value as a Value.

const char* memberName ( ) const

Return the member name of the referenced Value. "" if it is not an objectValue.

var memberName ( )

Return the member name of the referenced Value. "" if it is not an objectValue.

local memberName ( )

Return the member name of the referenced Value. "" if it is not an objectValue.

bool operator!= ( const SelfType other) const
inline
bool operator!= ( var  other)
inline
bool operator!= ( local  other)
inline
difference_type operator- ( const SelfType other) const
inline
difference_type operator- ( var  other)
inline
difference_type operator- ( local  other)
inline
bool operator== ( const SelfType other) const
inline
bool operator== ( var  other)
inline
bool operator== ( local  other)
inline

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