22#include <xrpl/json/json_forwards.h>
23#include <xrpl/json/json_value.h>
40 Value::ObjectValues::iterator
const& current)
41 : current_(current), isNull_(false)
113 if (czstring.
c_str())
129 if (!czstring.
c_str())
130 return czstring.
index();
138 char const* name = (*current_).first.
c_str();
139 return name ? name :
"";
151 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).