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