3#include <xrpl/json/json_forwards.h>
4#include <xrpl/json/json_value.h>
21 Value::ObjectValues::iterator
const& current)
22 : current_(current), isNull_(false)
110 if (!czstring.
c_str())
111 return czstring.
index();
119 char const* name = (*current_).first.
c_str();
120 return name ? name :
"";
132 Value::ObjectValues::iterator
const& current)
Lightweight wrapper to tag static string.
const iterator for object and array value.
SelfType & operator=(ValueIteratorBase const &other)
ValueConstIterator()=default
base class for Value iterators.
void copy(SelfType const &other)
Value key() const
Return either the index or the member name of the referenced value as a Value.
bool isEqual(SelfType const &other) const
char const * memberName() const
Return the member name of the referenced Value.
UInt index() const
Return the index of the referenced Value. -1 if it is not an arrayValue.
difference_type computeDistance(SelfType const &other) const
Value::ObjectValues::iterator current_
Iterator for object and array value.
SelfType & operator=(SelfType const &other)
bool isStaticString() const
char const * c_str() const
JSON (JavaScript Object Notation).