JsonCpp project page | JsonCpp home page |
base class for Value iterators. More...
#include <json/value.h>
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. 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 | |
Value & | deref () const |
void | increment () |
void | decrement () |
difference_type | computeDistance (const SelfType &other) const |
bool | isEqual (const SelfType &other) const |
void | copy (const SelfType &other) |
typedef int Json::ValueIteratorBase::difference_type |
typedef unsigned int Json::ValueIteratorBase::size_t |
ValueIteratorBase::ValueIteratorBase | ( | ) |
Definition at line 13 of file json_valueiterator.inl.
ValueIteratorBase::ValueIteratorBase | ( | const ValueInternalArray::IteratorState & | state | ) |
Definition at line 35 of file json_valueiterator.inl.
ValueIteratorBase::ValueIteratorBase | ( | const ValueInternalMap::IteratorState & | state | ) |
Definition at line 42 of file json_valueiterator.inl.
|
protected |
Definition at line 89 of file json_valueiterator.inl.
Referenced by operator-().
|
protected |
Definition at line 143 of file json_valueiterator.inl.
Referenced by Json::ValueIterator::operator=(), and Json::ValueConstIterator::operator=().
|
protected |
Definition at line 76 of file json_valueiterator.inl.
Referenced by Json::ValueConstIterator::operator--(), and Json::ValueIterator::operator--().
|
protected |
Definition at line 50 of file json_valueiterator.inl.
Referenced by Json::ValueConstIterator::operator*(), and Json::ValueIterator::operator*().
|
protected |
Definition at line 63 of file json_valueiterator.inl.
Referenced by Json::ValueConstIterator::operator++(), and Json::ValueIterator::operator++().
UInt ValueIteratorBase::index | ( | ) | const |
Return the index of the referenced Value. -1 if it is not an arrayValue.
Definition at line 180 of file json_valueiterator.inl.
|
protected |
Definition at line 126 of file json_valueiterator.inl.
Referenced by operator!=(), and operator==().
Value ValueIteratorBase::key | ( | ) | const |
Return either the index or the member name of the referenced value as a Value.
Definition at line 156 of file json_valueiterator.inl.
References memberName().
const char * ValueIteratorBase::memberName | ( | ) | const |
Return the member name of the referenced Value. "" if it is not an objectValue.
Definition at line 196 of file json_valueiterator.inl.
Referenced by key().
|
inline |
|
inline |
Definition at line 904 of file value.h.
References computeDistance().
|
inline |
ValueInternalArray::IteratorState Json::ValueIteratorBase::array_ |
Definition at line 939 of file value.h.
Referenced by computeDistance(), copy(), and isEqual().
ValueInternalMap::IteratorState Json::ValueIteratorBase::map_ |
Definition at line 940 of file value.h.
Referenced by computeDistance(), copy(), and isEqual().
|
hosts this site. |
Send comments to: Json-cpp Developers |