JsonCpp project page JsonCpp home page

Public Types | Public Member Functions | Protected Member Functions

Json::ValueIteratorBase Class Reference

base class for Value iterators. More...

#include </home/iurt/rpm/BUILD/jsoncpp-src-0.5.0/include/json/value.h>

Inheritance diagram for Json::ValueIteratorBase:
Collaboration diagram for Json::ValueIteratorBase:

List of all members.

Public Types

typedef unsigned int size_t
typedef int difference_type
typedef ValueIteratorBase SelfType

Public Member Functions

 ValueIteratorBase ()
 ValueIteratorBase (const ValueInternalArray::IteratorState &state)
 ValueIteratorBase (const ValueInternalMap::IteratorState &state)
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.
UInt index () const
 Return the index of the referenced Value. -1 if it is not an arrayValue.
const char * memberName () const
 Return the member name of the referenced Value. "" if it is not an objectValue.

Protected Member Functions

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

base class for Value iterators.

Definition at line 879 of file value.h.


Member Typedef Documentation

Reimplemented in Json::ValueConstIterator, and Json::ValueIterator.

Definition at line 883 of file value.h.

Reimplemented in Json::ValueConstIterator, and Json::ValueIterator.

Definition at line 884 of file value.h.

typedef unsigned int Json::ValueIteratorBase::size_t

Reimplemented in Json::ValueConstIterator, and Json::ValueIterator.

Definition at line 882 of file value.h.


Constructor & Destructor Documentation

ValueIteratorBase::ValueIteratorBase ( )

Definition at line 14 of file json_value.cpp.

ValueIteratorBase::ValueIteratorBase ( const ValueInternalArray::IteratorState &  state)

Definition at line 36 of file json_value.cpp.

ValueIteratorBase::ValueIteratorBase ( const ValueInternalMap::IteratorState &  state)

Definition at line 43 of file json_value.cpp.


Member Function Documentation

ValueIteratorBase::difference_type ValueIteratorBase::computeDistance ( const SelfType other) const [protected]

Definition at line 90 of file json_value.cpp.

void ValueIteratorBase::copy ( const SelfType other) [protected]
void ValueIteratorBase::decrement ( ) [protected]

Definition at line 186 of file json_internalarray.inl.

References JSON_ASSERT_MESSAGE.

Value & ValueIteratorBase::deref ( ) const [protected]

Definition at line 51 of file json_value.cpp.

void ValueIteratorBase::increment ( ) [protected]

Definition at line 170 of file json_internalarray.inl.

References JSON_ASSERT_MESSAGE.

UInt ValueIteratorBase::index ( ) const

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

Definition at line 181 of file json_value.cpp.

bool ValueIteratorBase::isEqual ( const SelfType other) const [protected]

Definition at line 127 of file json_value.cpp.

Value ValueIteratorBase::key ( ) const

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

Definition at line 157 of file json_value.cpp.

const char * ValueIteratorBase::memberName ( ) const

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

Definition at line 197 of file json_value.cpp.

References Json::ValueAllocator::releaseMemberName(), and Json::valueAllocator().

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

Definition at line 899 of file value.h.

difference_type Json::ValueIteratorBase::operator- ( const SelfType other) const [inline]

Definition at line 904 of file value.h.

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

Definition at line 894 of file value.h.


Member Data Documentation

ValueInternalArray::IteratorState Json::ValueIteratorBase::array_

Definition at line 939 of file value.h.

ValueInternalMap::IteratorState Json::ValueIteratorBase::map_

Definition at line 940 of file value.h.


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

SourceForge Logo hosts this site. Send comments to:
Json-cpp Developers