base class for Value iterators. More...
#include <value.h>
Inherited by Json::ValueConstIterator, and Json::ValueIterator.
Public Types | |
typedef unsigned int | size_t |
typedef int | difference_type |
typedef ValueIteratorBase | SelfType |
Public Member Functions | |
ValueIteratorBase () | |
ValueIteratorBase (const Value::ObjectValues::iterator ¤t) | |
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 | |
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) |
base class for Value iterators.
typedef unsigned int Json::ValueIteratorBase::size_t |
Reimplemented in Json::ValueConstIterator, and Json::ValueIterator.
typedef int Json::ValueIteratorBase::difference_type |
Reimplemented in Json::ValueConstIterator, and Json::ValueIterator.
Reimplemented in Json::ValueConstIterator, and Json::ValueIterator.
Json::ValueIteratorBase::ValueIteratorBase | ( | ) |
Json::ValueIteratorBase::ValueIteratorBase | ( | const Value::ObjectValues::iterator & | current | ) | [explicit] |
Json::ValueIteratorBase::ValueIteratorBase | ( | const ValueInternalArray::IteratorState & | state | ) |
Json::ValueIteratorBase::ValueIteratorBase | ( | const ValueInternalMap::IteratorState & | state | ) |
bool Json::ValueIteratorBase::operator== | ( | const SelfType & | other | ) | const |
bool Json::ValueIteratorBase::operator!= | ( | const SelfType & | other | ) | const |
difference_type Json::ValueIteratorBase::operator- | ( | const SelfType & | other | ) | const |
Value Json::ValueIteratorBase::key | ( | ) | const |
Return either the index or the member name of the referenced value as a Value.
UInt Json::ValueIteratorBase::index | ( | ) | const |
Return the index of the referenced Value. -1 if it is not an arrayValue.
const char * Json::ValueIteratorBase::memberName | ( | ) | const |
Return the member name of the referenced Value. "" if it is not an objectValue.
Value & Json::ValueIteratorBase::deref | ( | ) | const [protected] |
void Json::ValueIteratorBase::increment | ( | ) | [protected] |
void Json::ValueIteratorBase::decrement | ( | ) | [protected] |
ValueIteratorBase::difference_type Json::ValueIteratorBase::computeDistance | ( | const SelfType & | other | ) | const [protected] |
bool Json::ValueIteratorBase::isEqual | ( | const SelfType & | other | ) | const [protected] |
void Json::ValueIteratorBase::copy | ( | const SelfType & | other | ) | [protected] |