|
xrpld
|
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 | |
| ValueConstIterator (ValueConstIterator const &other)=default | |
| SelfType & | operator= (SelfType 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 ValueType::Array. | |
| 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 557 of file json_value.h.
| using json::ValueConstIterator::size_t = unsigned int |
Definition at line 562 of file json_value.h.
| using json::ValueConstIterator::difference_type = int |
Definition at line 563 of file json_value.h.
| using json::ValueConstIterator::reference = Value const& |
Definition at line 564 of file json_value.h.
| using json::ValueConstIterator::pointer = Value const* |
Definition at line 565 of file json_value.h.
Definition at line 566 of file json_value.h.
|
default |
|
default |
|
explicitprivate |
Definition at line 129 of file json_valueiterator.cpp.
| ValueConstIterator & json::ValueConstIterator::operator= | ( | SelfType const & | other | ) |
Definition at line 135 of file json_valueiterator.cpp.
| SelfType json::ValueConstIterator::operator++ | ( | int | ) |
Definition at line 581 of file json_value.h.
| SelfType json::ValueConstIterator::operator-- | ( | int | ) |
Definition at line 589 of file json_value.h.
| SelfType & json::ValueConstIterator::operator-- | ( | ) |
Definition at line 597 of file json_value.h.
| SelfType & json::ValueConstIterator::operator++ | ( | ) |
Definition at line 604 of file json_value.h.
| reference json::ValueConstIterator::operator* | ( | ) | const |
Definition at line 611 of file json_value.h.
|
inherited |
Definition at line 504 of file json_value.h.
|
inherited |
Definition at line 510 of file json_value.h.
|
nodiscardinherited |
Return either the index or the member name of the referenced value as a Value.
Definition at line 88 of file json_valueiterator.cpp.
|
nodiscardinherited |
Return the index of the referenced Value. -1 if it is not an ValueType::Array.
Definition at line 104 of file json_valueiterator.cpp.
|
nodiscardinherited |
Return the member name of the referenced Value.
"" if it is not an ValueType::Object.
Definition at line 115 of file json_valueiterator.cpp.
|
nodiscardprotectedinherited |
Definition at line 26 of file json_valueiterator.cpp.
|
protectedinherited |
Definition at line 32 of file json_valueiterator.cpp.
|
protectedinherited |
Definition at line 38 of file json_valueiterator.cpp.
|
nodiscardprotectedinherited |
Definition at line 44 of file json_valueiterator.cpp.
|
nodiscardprotectedinherited |
Definition at line 71 of file json_valueiterator.cpp.
|
protectedinherited |
Definition at line 82 of file json_valueiterator.cpp.
|
friend |
Definition at line 559 of file json_value.h.
|
privateinherited |
Definition at line 549 of file json_value.h.
|
privateinherited |
Definition at line 551 of file json_value.h.