NIM 跨平台 C++ SDK
|
base class for Value iterators. 更多...
#include <value.h>
Public 类型 | |
using | iterator_category = std::bidirectional_iterator_tag |
using | size_t = unsigned int |
using | difference_type = int |
using | SelfType = ValueIteratorBase |
Public 成员函数 | |
bool | operator== (const SelfType &other) const |
bool | operator!= (const SelfType &other) const |
difference_type | operator- (const SelfType &other) const |
Value | key () const |
UInt | index () const |
String | name () const |
char const * | memberName () const |
char const * | memberName (char const **end) const |
ValueIteratorBase () | |
ValueIteratorBase (const Value::ObjectValues::iterator ¤t) | |
Protected 成员函数 | |
const Value & | deref () const |
Value & | deref () |
void | increment () |
void | decrement () |
difference_type | computeDistance (const SelfType &other) const |
bool | isEqual (const SelfType &other) const |
void | copy (const SelfType &other) |
Private 属性 | |
Value::ObjectValues::iterator | current_ |
bool | isNull_ {true} |
base class for Value iterators.
using nim_cpp_wrapper_util::Json::ValueIteratorBase::iterator_category = std::bidirectional_iterator_tag |
using nim_cpp_wrapper_util::Json::ValueIteratorBase::size_t = unsigned int |
nim_cpp_wrapper_util::Json::ValueIteratorBase::ValueIteratorBase | ( | ) |
|
explicit |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Internal utility functions to assist with implementing other iterator functions. The const and non-const versions of the "deref" protected methods expose the protected current_ member variable in a way that can often be optimized away by the compiler.
|
protected |
UInt nim_cpp_wrapper_util::Json::ValueIteratorBase::index | ( | ) | const |
Return the index of the referenced Value, or -1 if it is not an arrayValue.
|
protected |
Value nim_cpp_wrapper_util::Json::ValueIteratorBase::key | ( | ) | const |
Return either the index or the member name of the referenced value as a Value.
char const * nim_cpp_wrapper_util::Json::ValueIteratorBase::memberName | ( | ) | const |
char const * nim_cpp_wrapper_util::Json::ValueIteratorBase::memberName | ( | char const ** | end | ) | const |
Return the member name of the referenced Value, or NULL if it is not an objectValue.
String nim_cpp_wrapper_util::Json::ValueIteratorBase::name | ( | ) | const |
Return the member name of the referenced Value, or "" if it is not an objectValue.
c_str()
on result, as embedded zeroes are possible.
|
inline |
|
inline |
|
inline |
|
private |