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

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

#include <iterator.hpp>

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

Public 类型

typedef _tContainer container_type
 
typedef
std::random_access_iterator_tag 
iterator_category
 
typedef _type value_type
 
typedef ptrdiff_t difference_type
 
typedef _type * pointer
 
typedef _type & reference
 

Public 成员函数

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

Protected 属性

_tContainer * p_cont
 
size_t idx
 

详细描述

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

成员下标迭代器。

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

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

在文件 iterator.hpp810 行定义.

成员类型定义说明

template<class _tContainer, typename _type>
typedef _tContainer ystdex::subscriptive_iterator< _tContainer, _type >::container_type

在文件 iterator.hpp813 行定义.

template<class _tContainer, typename _type>
typedef ptrdiff_t ystdex::subscriptive_iterator< _tContainer, _type >::difference_type

在文件 iterator.hpp816 行定义.

template<class _tContainer, typename _type>
typedef std::random_access_iterator_tag ystdex::subscriptive_iterator< _tContainer, _type >::iterator_category

在文件 iterator.hpp814 行定义.

template<class _tContainer, typename _type>
typedef _type* ystdex::subscriptive_iterator< _tContainer, _type >::pointer

在文件 iterator.hpp817 行定义.

template<class _tContainer, typename _type>
typedef _type& ystdex::subscriptive_iterator< _tContainer, _type >::reference

在文件 iterator.hpp818 行定义.

template<class _tContainer, typename _type>
typedef _type ystdex::subscriptive_iterator< _tContainer, _type >::value_type

在文件 iterator.hpp815 行定义.

构造及析构函数说明

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

成员函数说明

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

在文件 iterator.hpp914 行定义.

参考 ystdex::subscriptive_iterator< _tContainer, _type >::p_cont.

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

在文件 iterator.hpp927 行定义.

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

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

在文件 iterator.hpp865 行定义.

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

在文件 iterator.hpp880 行定义.

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

在文件 iterator.hpp853 行定义.

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

类成员变量说明


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