NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nstd::_iterator< TElement > 模板类 参考

#include <ne_stl_iterator.h>

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

Public 成员函数

 _iterator ()=default
 
 _iterator (nstd::iterator_type< TElement > p)
 
TElement & operator* ()
 
const TElement & operator* () const
 
TElement & operator[] (int32_t i)
 
const TElement & operator[] (int32_t i) const
 
_iteratoroperator++ ()
 
_iterator operator++ (int32_t)
 
_iteratoroperator-- ()
 
_iterator operator-- (int32_t)
 
_iterator operator+ (std::size_t i)
 
_iterator operator- (std::size_t i)
 
std::size_t operator- (_iterator right)
 
- Public 成员函数 继承自 nstd::_const_iterator< TElement >
 _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)
 

Private 类型

using _parent_t = nstd::_const_iterator< TElement >
 

额外继承的成员函数

- Public 类型 继承自 nstd::_const_iterator< TElement >
using value_type = TElement
 
using iterator_category = std::bidirectional_iterator_tag
 
using difference_type = size_t
 
using pointer = TElement *
 
using reference = TElement &
 
- Protected 成员函数 继承自 nstd::_const_iterator< TElement >
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::_const_iterator< TElement >
nstd::iterator_type< TElement > current_
 

成员类型定义说明

◆ _parent_t

template<class TElement >
using nstd::_iterator< TElement >::_parent_t = nstd::_const_iterator<TElement>
private

构造及析构函数说明

◆ _iterator() [1/2]

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

◆ _iterator() [2/2]

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

成员函数说明

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator+()

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

◆ operator++() [1/2]

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

◆ operator++() [2/2]

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

◆ operator-() [1/2]

template<class TElement >
std::size_t nstd::_iterator< TElement >::operator- ( _iterator< TElement >  right)
inline

◆ operator-() [2/2]

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

◆ operator--() [1/2]

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

◆ operator--() [2/2]

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

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

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