base class for Value iterators. More...
#include <json/value.h>
Inheritance diagram for Json::ValueIteratorBase:
Collaboration diagram for Json::ValueIteratorBase:Public Types | |
| typedef std::bidirectional_iterator_tag | iterator_category |
| typedef unsigned int | size_t |
| typedef int | difference_type |
| typedef ValueIteratorBase | SelfType |
Public Member Functions | |
| 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, or -1 if it is not an arrayValue. More... | |
| std::string | name () const |
| Return the member name of the referenced Value, or "" if it is not an objectValue. More... | |
| char const * | memberName () const |
| Return the member name of the referenced Value. More... | |
| char const * | memberName (char const **end) const |
| Return the member name of the referenced Value, or NULL if it is not an objectValue. More... | |
| ValueIteratorBase () | |
| ValueIteratorBase (const Value::ObjectValues::iterator ¤t) | |
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 std::bidirectional_iterator_tag Json::ValueIteratorBase::iterator_category |
| typedef unsigned int Json::ValueIteratorBase::size_t |
| Json::ValueIteratorBase::ValueIteratorBase | ( | ) |
Definition at line 18 of file json_valueiterator.inl.
Referenced by Json::ValueConstIterator::ValueConstIterator(), and Json::ValueIterator::ValueIterator().
Here is the caller graph for this function:
|
explicit |
Definition at line 22 of file json_valueiterator.inl.
|
protected |
Definition at line 39 of file json_valueiterator.inl.
Referenced by operator-().
Here is the caller graph for this function:
|
protected |
Definition at line 73 of file json_valueiterator.inl.
Referenced by Json::ValueConstIterator::operator=(), and Json::ValueIterator::operator=().
Here is the caller graph for this function:
|
protected |
Definition at line 34 of file json_valueiterator.inl.
|
protected |
Definition at line 26 of file json_valueiterator.inl.
|
protected |
Definition at line 30 of file json_valueiterator.inl.
| UInt Json::ValueIteratorBase::index | ( | ) | const |
Return the index of the referenced Value, or -1 if it is not an arrayValue.
Definition at line 88 of file json_valueiterator.inl.
|
protected |
Definition at line 66 of file json_valueiterator.inl.
| Value Json::ValueIteratorBase::key | ( | ) | const |
Return either the index or the member name of the referenced value as a Value.
Definition at line 78 of file json_valueiterator.inl.
| char const * Json::ValueIteratorBase::memberName | ( | ) | const |
Return the member name of the referenced Value.
"" if it is not an objectValue.
Definition at line 103 of file json_valueiterator.inl.
Referenced by name().
Here is the caller graph for this function:| char const * Json::ValueIteratorBase::memberName | ( | char const ** | end | ) | const |
Return the member name of the referenced Value, or NULL if it is not an objectValue.
Definition at line 108 of file json_valueiterator.inl.
| JSONCPP_STRING Json::ValueIteratorBase::name | ( | ) | const |
Return the member name of the referenced Value, or "" if it is not an objectValue.
c_str() on result, as embedded zeroes are possible. Definition at line 95 of file json_valueiterator.inl.
References JSONCPP_STRING, and memberName().
|
inline |
|
inline |
Definition at line 720 of file value.h.
References computeDistance(), JSONCPP_DEPRECATED, and JSONCPP_STRING.
|
inline |
1.8.13