NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_cpp_wrapper_util::Json::ValueIterator类 参考

Iterator for object and array value. 更多...

#include <value.h>

类 nim_cpp_wrapper_util::Json::ValueIterator 继承关系图:
nim_cpp_wrapper_util::Json::ValueIteratorBase

Public 类型

using value_type = Value
 
using size_t = unsigned int
 
using difference_type = int
 
using reference = Value &
 
using pointer = Value *
 
using SelfType = ValueIterator
 
- Public 类型 继承自 nim_cpp_wrapper_util::Json::ValueIteratorBase
using iterator_category = std::bidirectional_iterator_tag
 
using size_t = unsigned int
 
using difference_type = int
 
using SelfType = ValueIteratorBase
 

Public 成员函数

 ValueIterator ()
 
 ValueIterator (const ValueConstIterator &other)
 
 ValueIterator (const ValueIterator &other)
 
SelfTypeoperator= (const SelfType &other)
 
SelfType operator++ (int)
 
SelfType operator-- (int)
 
SelfTypeoperator-- ()
 
SelfTypeoperator++ ()
 
reference operator* ()
 
pointer operator-> ()
 
- Public 成员函数 继承自 nim_cpp_wrapper_util::Json::ValueIteratorBase
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 &current)
 

Private 成员函数

 ValueIterator (const Value::ObjectValues::iterator &current)
 

友元

class Value
 

额外继承的成员函数

- Protected 成员函数 继承自 nim_cpp_wrapper_util::Json::ValueIteratorBase
const Valuederef () const
 
Valuederef ()
 
void increment ()
 
void decrement ()
 
difference_type computeDistance (const SelfType &other) const
 
bool isEqual (const SelfType &other) const
 
void copy (const SelfType &other)
 

详细描述

Iterator for object and array value.

成员类型定义说明

◆ difference_type

◆ pointer

◆ reference

◆ SelfType

◆ size_t

◆ value_type

构造及析构函数说明

◆ ValueIterator() [1/4]

nim_cpp_wrapper_util::Json::ValueIterator::ValueIterator ( )
default

◆ ValueIterator() [2/4]

nim_cpp_wrapper_util::Json::ValueIterator::ValueIterator ( const ValueConstIterator other)
explicit

◆ ValueIterator() [3/4]

nim_cpp_wrapper_util::Json::ValueIterator::ValueIterator ( const ValueIterator other)
default

◆ ValueIterator() [4/4]

nim_cpp_wrapper_util::Json::ValueIterator::ValueIterator ( const Value::ObjectValues::iterator &  current)
explicitprivate

成员函数说明

◆ operator*()

reference nim_cpp_wrapper_util::Json::ValueIterator::operator* ( )
inline

The return value of non-const iterators can be changed, so the these functions are not const because the returned references/pointers can be used to change state of the base class.

◆ operator++() [1/2]

SelfType & nim_cpp_wrapper_util::Json::ValueIterator::operator++ ( )
inline

◆ operator++() [2/2]

SelfType nim_cpp_wrapper_util::Json::ValueIterator::operator++ ( int  )
inline

◆ operator--() [1/2]

SelfType & nim_cpp_wrapper_util::Json::ValueIterator::operator-- ( )
inline

◆ operator--() [2/2]

SelfType nim_cpp_wrapper_util::Json::ValueIterator::operator-- ( int  )
inline

◆ operator->()

pointer nim_cpp_wrapper_util::Json::ValueIterator::operator-> ( )
inline

◆ operator=()

ValueIterator & nim_cpp_wrapper_util::Json::ValueIterator::operator= ( const SelfType other)

友元及相关函数文档

◆ Value

friend class Value
friend

该类的文档由以下文件生成: