YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ystdex::subscriptive_iterator< _tCon, _type > 模板类 参考

成员下标迭代器。 更多...

#include <iterator.hpp>

ystdex::subscriptive_iterator< _tCon, _type > 的协作图:

Public 类型

using container_type = _tCon
 
using iterator_category = std::random_access_iterator_tag
 
using value_type = _type
 
using difference_type = ptrdiff_t
 
using pointer = _type *
 
using reference = _type &
 

Public 成员函数

 subscriptive_iterator (_tCon &c, size_t i)
 
subscriptive_iteratoroperator+= (difference_type n)
 
subscriptive_iteratoroperator-= (difference_type n)
 
reference operator[] (difference_type n) const
 
subscriptive_iterator operator+ (difference_type n) const
 
subscriptive_iterator operator- (difference_type n) const
 
_tCon * container () const
 
bool equals (const subscriptive_iterator< _tCon, _type > &i) const
 
size_t index () const
 
reference operator* () const
 
pointer operator-> () const
 
subscriptive_iteratoroperator++ ()
 
subscriptive_iterator operator++ (int)
 
subscriptive_iterator operator-- ()
 
subscriptive_iterator operator-- (int)
 

Protected 属性

_tCon * con_ptr
 
size_t idx
 

相关函数

(请注意: 这些不是成员函数.)

template<class _tCon , typename _type >
bool operator== (const subscriptive_iterator< _tCon, _type > &x, const subscriptive_iterator< _tCon, _type > &y)
 比较成员下标迭代器的相等性。 更多...
 
template<class _tCon , typename _type >
bool operator!= (const subscriptive_iterator< _tCon, _type > &x, const subscriptive_iterator< _tCon, _type > &y)
 比较成员下标迭代器的不等性。 更多...
 

详细描述

template<class _tCon, typename _type>
class ystdex::subscriptive_iterator< _tCon, _type >

成员下标迭代器。

警告
非虚析构。
自从
build 356 。

根据指定类型提供的下标操作枚举其成员的随机访问迭代器。

在文件 iterator.hpp1380 行定义.

成员类型定义说明

template<class _tCon, typename _type>
using ystdex::subscriptive_iterator< _tCon, _type >::container_type = _tCon

在文件 iterator.hpp1383 行定义.

template<class _tCon, typename _type>
using ystdex::subscriptive_iterator< _tCon, _type >::difference_type = ptrdiff_t

在文件 iterator.hpp1386 行定义.

template<class _tCon, typename _type>
using ystdex::subscriptive_iterator< _tCon, _type >::iterator_category = std::random_access_iterator_tag

在文件 iterator.hpp1384 行定义.

template<class _tCon, typename _type>
using ystdex::subscriptive_iterator< _tCon, _type >::pointer = _type*

在文件 iterator.hpp1387 行定义.

template<class _tCon, typename _type>
using ystdex::subscriptive_iterator< _tCon, _type >::reference = _type&

在文件 iterator.hpp1388 行定义.

template<class _tCon, typename _type>
using ystdex::subscriptive_iterator< _tCon, _type >::value_type = _type

在文件 iterator.hpp1385 行定义.

构造及析构函数说明

template<class _tCon, typename _type>
ystdex::subscriptive_iterator< _tCon, _type >::subscriptive_iterator ( _tCon &  c,
size_t  i 
)
inline

在文件 iterator.hpp1397 行定义.

参考自 ystdex::subscriptive_iterator< _tCon, _type >::operator+() , 以及 ystdex::subscriptive_iterator< _tCon, _type >::operator-().

这是这个函数的调用关系图:

成员函数说明

template<class _tCon, typename _type>
_tCon* ystdex::subscriptive_iterator< _tCon, _type >::container ( ) const
inline
自从
build 461

在文件 iterator.hpp1484 行定义.

参考 ystdex::subscriptive_iterator< _tCon, _type >::con_ptr.

template<class _tCon, typename _type>
bool ystdex::subscriptive_iterator< _tCon, _type >::equals ( const subscriptive_iterator< _tCon, _type > &  i) const
inline
template<class _tCon, typename _type>
size_t ystdex::subscriptive_iterator< _tCon, _type >::index ( ) const
inline
自从
build 461

在文件 iterator.hpp1498 行定义.

参考 ystdex::subscriptive_iterator< _tCon, _type >::idx.

template<class _tCon, typename _type>
reference ystdex::subscriptive_iterator< _tCon, _type >::operator* ( ) const
inline
template<class _tCon, typename _type>
subscriptive_iterator& ystdex::subscriptive_iterator< _tCon, _type >::operator++ ( )
inline
template<class _tCon, typename _type>
subscriptive_iterator ystdex::subscriptive_iterator< _tCon, _type >::operator++ ( int  )
inline

在文件 iterator.hpp1437 行定义.

template<class _tCon, typename _type>
subscriptive_iterator& ystdex::subscriptive_iterator< _tCon, _type >::operator+= ( difference_type  n)
inline
template<class _tCon, typename _type>
subscriptive_iterator ystdex::subscriptive_iterator< _tCon, _type >::operator-- ( )
inline
template<class _tCon, typename _type>
subscriptive_iterator ystdex::subscriptive_iterator< _tCon, _type >::operator-- ( int  )
inline

在文件 iterator.hpp1452 行定义.

template<class _tCon, typename _type>
subscriptive_iterator& ystdex::subscriptive_iterator< _tCon, _type >::operator-= ( difference_type  n)
inline
template<class _tCon, typename _type>
pointer ystdex::subscriptive_iterator< _tCon, _type >::operator-> ( ) const
inline

在文件 iterator.hpp1425 行定义.

template<class _tCon, typename _type>
reference ystdex::subscriptive_iterator< _tCon, _type >::operator[] ( difference_type  n) const
inline

友元及相关函数文档

template<class _tCon , typename _type >
bool operator!= ( const subscriptive_iterator< _tCon, _type > &  x,
const subscriptive_iterator< _tCon, _type > &  y 
)
related

比较成员下标迭代器的不等性。

在文件 iterator.hpp1521 行定义.

template<class _tCon , typename _type >
bool operator== ( const subscriptive_iterator< _tCon, _type > &  x,
const subscriptive_iterator< _tCon, _type > &  y 
)
related

比较成员下标迭代器的相等性。

自从
build 461

在文件 iterator.hpp1512 行定义.

类成员变量说明


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