NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nstd::_const_iterator< TElement > 模板类 参考

#include <ne_stl_iterator.h>

类 nstd::_const_iterator< TElement > 继承关系图:
nstd::_const_reverse_iterator< TElement > nstd::_iterator< TElement > nstd::_reverse_iterator< TElement >

Public 类型

using value_type = TElement
 
using iterator_category = std::bidirectional_iterator_tag
 
using difference_type = size_t
 
using pointer = TElement*
 
using reference = TElement&
 

Public 成员函数

 _const_iterator ()=default
 
 _const_iterator (nstd::iterator_type< TElement > p)
 
nstd::iterator_type< TElement > & current ()
 
const nstd::iterator_type< TElement > & current () const
 
const TElement & operator* () const
 
const TElement & operator[] (int32_t i) const
 
_const_iteratoroperator++ ()
 
_const_iterator operator++ (int32_t)
 
_const_iteratoroperator-- ()
 
_const_iterator operator-- (int32_t)
 
bool operator== (const _const_iterator &rhs) const
 
bool operator!= (const _const_iterator &rhs) const
 
_const_iterator operator+ (std::size_t i)
 
_const_iterator operator- (std::size_t i)
 

Protected 成员函数

TElement & retrieve () const
 
void _increment ()
 
void _decrement ()
 
TElement & _randomAccess (std::size_t i) const
 
void _add (_const_iterator &toReturn, std::size_t i)
 
void _subtract (_const_iterator &toReturn, std::size_t i)
 

Protected 属性

nstd::iterator_type< TElement > current_
 

成员类型定义说明

◆ difference_type

template<class TElement >
using nstd::_const_iterator< TElement >::difference_type = size_t

◆ iterator_category

template<class TElement >
using nstd::_const_iterator< TElement >::iterator_category = std::bidirectional_iterator_tag

◆ pointer

template<class TElement >
using nstd::_const_iterator< TElement >::pointer = TElement*

◆ reference

template<class TElement >
using nstd::_const_iterator< TElement >::reference = TElement&

◆ value_type

template<class TElement >
using nstd::_const_iterator< TElement >::value_type = TElement

构造及析构函数说明

◆ _const_iterator() [1/2]

template<class TElement >
nstd::_const_iterator< TElement >::_const_iterator ( )
default

◆ _const_iterator() [2/2]

template<class TElement >
nstd::_const_iterator< TElement >::_const_iterator ( nstd::iterator_type< TElement > p)
inline

成员函数说明

◆ _add()

template<class TElement >
void nstd::_const_iterator< TElement >::_add ( _const_iterator< TElement > & toReturn,
std::size_t i )
inlineprotected

◆ _decrement()

template<class TElement >
void nstd::_const_iterator< TElement >::_decrement ( )
inlineprotected

◆ _increment()

template<class TElement >
void nstd::_const_iterator< TElement >::_increment ( )
inlineprotected

◆ _randomAccess()

template<class TElement >
TElement & nstd::_const_iterator< TElement >::_randomAccess ( std::size_t i) const
inlineprotected

◆ _subtract()

template<class TElement >
void nstd::_const_iterator< TElement >::_subtract ( _const_iterator< TElement > & toReturn,
std::size_t i )
inlineprotected

◆ current() [1/2]

template<class TElement >
nstd::iterator_type< TElement > & nstd::_const_iterator< TElement >::current ( )
inline

◆ current() [2/2]

template<class TElement >
const nstd::iterator_type< TElement > & nstd::_const_iterator< TElement >::current ( ) const
inline

◆ operator!=()

template<class TElement >
bool nstd::_const_iterator< TElement >::operator!= ( const _const_iterator< TElement > & rhs) const
inline

◆ operator*()

template<class TElement >
const TElement & nstd::_const_iterator< TElement >::operator* ( ) const
inline

◆ operator+()

template<class TElement >
_const_iterator nstd::_const_iterator< TElement >::operator+ ( std::size_t i)
inline

◆ operator++() [1/2]

template<class TElement >
_const_iterator & nstd::_const_iterator< TElement >::operator++ ( )
inline

◆ operator++() [2/2]

template<class TElement >
_const_iterator nstd::_const_iterator< TElement >::operator++ ( int32_t )
inline

◆ operator-()

template<class TElement >
_const_iterator nstd::_const_iterator< TElement >::operator- ( std::size_t i)
inline

◆ operator--() [1/2]

template<class TElement >
_const_iterator & nstd::_const_iterator< TElement >::operator-- ( )
inline

◆ operator--() [2/2]

template<class TElement >
_const_iterator nstd::_const_iterator< TElement >::operator-- ( int32_t )
inline

◆ operator==()

template<class TElement >
bool nstd::_const_iterator< TElement >::operator== ( const _const_iterator< TElement > & rhs) const
inline

◆ operator[]()

template<class TElement >
const TElement & nstd::_const_iterator< TElement >::operator[] ( int32_t i) const
inline

◆ retrieve()

template<class TElement >
TElement & nstd::_const_iterator< TElement >::retrieve ( ) const
inlineprotected

类成员变量说明

◆ current_

template<class TElement >
nstd::iterator_type<TElement> nstd::_const_iterator< TElement >::current_
protected

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