|
rippled
|
const iterator for object and array value. More...
#include <json_value.h>


Public Types | |
| using | size_t = unsigned int |
| using | difference_type = int |
| using | reference = Value const & |
| using | pointer = Value const * |
| using | SelfType = ValueConstIterator |
Public Member Functions | |
| ValueConstIterator ()=default | |
| SelfType & | operator= (ValueIteratorBase const &other) |
| SelfType | operator++ (int) |
| SelfType | operator-- (int) |
| SelfType & | operator-- () |
| SelfType & | operator++ () |
| reference | operator* () const |
| bool | operator== (SelfType const &other) const |
| bool | operator!= (SelfType const &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. | |
| char const * | memberName () const |
| Return the member name of the referenced Value. | |
Protected Member Functions | |
| Value & | deref () const |
| void | increment () |
| void | decrement () |
| difference_type | computeDistance (SelfType const &other) const |
| bool | isEqual (SelfType const &other) const |
| void | copy (SelfType const &other) |
Private Member Functions | |
| ValueConstIterator (Value::ObjectValues::iterator const ¤t) | |
Private Attributes | |
| Value::ObjectValues::iterator | current_ |
| bool | isNull_ |
Friends | |
| class | Value |
const iterator for object and array value.
Definition at line 556 of file json_value.h.
| using Json::ValueConstIterator::size_t = unsigned int |
Definition at line 561 of file json_value.h.
| using Json::ValueConstIterator::difference_type = int |
Definition at line 562 of file json_value.h.
| using Json::ValueConstIterator::reference = Value const& |
Definition at line 563 of file json_value.h.
| using Json::ValueConstIterator::pointer = Value const* |
Definition at line 564 of file json_value.h.
Definition at line 565 of file json_value.h.
|
default |
|
explicitprivate |
Definition at line 128 of file json_valueiterator.cpp.
| ValueConstIterator & Json::ValueConstIterator::operator= | ( | ValueIteratorBase const & | other | ) |
Definition at line 133 of file json_valueiterator.cpp.
| SelfType Json::ValueConstIterator::operator++ | ( | int | ) |
Definition at line 579 of file json_value.h.
| SelfType Json::ValueConstIterator::operator-- | ( | int | ) |
Definition at line 587 of file json_value.h.
| SelfType & Json::ValueConstIterator::operator-- | ( | ) |
Definition at line 595 of file json_value.h.
| SelfType & Json::ValueConstIterator::operator++ | ( | ) |
Definition at line 602 of file json_value.h.
| reference Json::ValueConstIterator::operator* | ( | ) | const |
Definition at line 609 of file json_value.h.
|
inherited |
Definition at line 503 of file json_value.h.
|
inherited |
Definition at line 509 of file json_value.h.
|
inherited |
Return either the index or the member name of the referenced value as a Value.
Definition at line 87 of file json_valueiterator.cpp.
|
inherited |
Return the index of the referenced Value. -1 if it is not an arrayValue.
Definition at line 103 of file json_valueiterator.cpp.
|
inherited |
Return the member name of the referenced Value.
"" if it is not an objectValue.
Definition at line 114 of file json_valueiterator.cpp.
|
protectedinherited |
Definition at line 25 of file json_valueiterator.cpp.
|
protectedinherited |
Definition at line 31 of file json_valueiterator.cpp.
|
protectedinherited |
Definition at line 37 of file json_valueiterator.cpp.
|
protectedinherited |
Definition at line 43 of file json_valueiterator.cpp.
|
protectedinherited |
Definition at line 70 of file json_valueiterator.cpp.
|
protectedinherited |
Definition at line 81 of file json_valueiterator.cpp.
|
friend |
Definition at line 558 of file json_value.h.
|
privateinherited |
Definition at line 548 of file json_value.h.
|
privateinherited |
Definition at line 550 of file json_value.h.