JsonCpp project page JsonCpp home page

Public Types | Public Member Functions | Friends | List of all members
Json::ValueIterator Class Reference

Iterator for object and array value. More...

#include <json/value.h>

Inherits Json::ValueIteratorBase.

Public Types

typedef Value value_type
typedef unsigned int size_t
typedef int difference_type
typedef Valuereference
typedef Valuepointer
typedef ValueIterator SelfType
- Public Types inherited from Json::ValueIteratorBase
typedef
std::bidirectional_iterator_tag 
iterator_category
typedef unsigned int size_t
typedef int difference_type
typedef ValueIteratorBase SelfType

Public Member Functions

 ValueIterator ()
 ValueIterator (const ValueConstIterator &other)
 ValueIterator (const ValueIterator &other)
SelfTypeoperator= (const SelfType &other)
SelfType operator++ (int)
SelfType operator-- (int)
SelfTypeoperator-- ()
SelfTypeoperator++ ()
reference operator* () const
pointer operator-> () const
- Public Member Functions inherited from Json::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.
UInt index () const
 Return the index of the referenced Value, or -1 if it is not an arrayValue.
std::string name () const
 Return the member name of the referenced Value, or "" if it is not an objectValue.
char const * memberName () const
 Return the member name of the referenced Value.
char const * memberName (char const **end) const
 Return the member name of the referenced Value, or NULL if it is not an objectValue.

Friends

class Value

Additional Inherited Members

- Protected Member Functions inherited from Json::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

Iterator for object and array value.

Definition at line 751 of file value.h.

Member Typedef Documentation

Definition at line 757 of file value.h.

Definition at line 759 of file value.h.

Definition at line 758 of file value.h.

Definition at line 760 of file value.h.

typedef unsigned int Json::ValueIterator::size_t

Definition at line 756 of file value.h.

Definition at line 755 of file value.h.

Constructor & Destructor Documentation

Json::ValueIterator::ValueIterator ( )

Definition at line 146 of file json_valueiterator.inl.

Json::ValueIterator::ValueIterator ( const ValueConstIterator other)

Definition at line 151 of file json_valueiterator.inl.

Json::ValueIterator::ValueIterator ( const ValueIterator other)

Definition at line 154 of file json_valueiterator.inl.

Member Function Documentation

reference Json::ValueIterator::operator* ( ) const
inline

Definition at line 795 of file value.h.

SelfType Json::ValueIterator::operator++ ( int  )
inline

Definition at line 773 of file value.h.

SelfType& Json::ValueIterator::operator++ ( )
inline

Definition at line 790 of file value.h.

SelfType Json::ValueIterator::operator-- ( int  )
inline

Definition at line 779 of file value.h.

SelfType& Json::ValueIterator::operator-- ( )
inline

Definition at line 785 of file value.h.

pointer Json::ValueIterator::operator-> ( ) const
inline

Definition at line 797 of file value.h.

ValueIterator & Json::ValueIterator::operator= ( const SelfType other)

Definition at line 157 of file json_valueiterator.inl.

References Json::ValueIteratorBase::copy().

Friends And Related Function Documentation

friend class Value
friend

Definition at line 752 of file value.h.


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