test
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 | Protected Member Functions | Private Attributes
Json::ValueIteratorBase Class Reference

base class for Value iterators. More...

#include <value.h>

Inheritance diagram for Json::ValueIteratorBase:
Json::ValueConstIterator Json::ValueIterator

Public Types

typedef int difference_type
 
typedef ValueIteratorBase SelfType
 
typedef unsigned int size_t
 

Public Member Functions

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)
 

Protected Member Functions

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

Private Attributes

Value::ObjectValues::iterator current_
 
bool isNull_
 

Detailed Description

base class for Value iterators.

Definition at line 879 of file value.h.

Member Typedef Documentation

Definition at line 883 of file value.h.

Definition at line 884 of file value.h.

typedef unsigned int Json::ValueIteratorBase::size_t

Definition at line 882 of file value.h.

Constructor & Destructor Documentation

Json::ValueIteratorBase::ValueIteratorBase ( )
Json::ValueIteratorBase::ValueIteratorBase ( const Value::ObjectValues::iterator &  current)
explicit

Member Function Documentation

difference_type Json::ValueIteratorBase::computeDistance ( const SelfType other) const
protected
void Json::ValueIteratorBase::copy ( const SelfType other)
protected
void Json::ValueIteratorBase::decrement ( )
protected
Value& Json::ValueIteratorBase::deref ( ) const
protected
void Json::ValueIteratorBase::increment ( )
protected
UInt Json::ValueIteratorBase::index ( ) const

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

Referenced by BeautifulSoup.PageElement::_invert().

bool Json::ValueIteratorBase::isEqual ( const SelfType other) const
protected
Value Json::ValueIteratorBase::key ( ) const

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

const char* Json::ValueIteratorBase::memberName ( ) const

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

bool Json::ValueIteratorBase::operator!= ( const SelfType other) const
inline

Definition at line 899 of file value.h.

900  {
901  return !isEqual( other );
902  }
bool isEqual(const SelfType &other) const
difference_type Json::ValueIteratorBase::operator- ( const SelfType other) const
inline

Definition at line 904 of file value.h.

905  {
906  return computeDistance( other );
907  }
difference_type computeDistance(const SelfType &other) const
bool Json::ValueIteratorBase::operator== ( const SelfType other) const
inline

Definition at line 894 of file value.h.

895  {
896  return isEqual( other );
897  }
bool isEqual(const SelfType &other) const

Member Data Documentation

Value::ObjectValues::iterator Json::ValueIteratorBase::current_
private

Definition at line 933 of file value.h.

bool Json::ValueIteratorBase::isNull_
private

Definition at line 935 of file value.h.