YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
成员下标迭代器。 更多...
#include <iterator.hpp>
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_iterator & | operator+= (difference_type n) |
subscriptive_iterator & | operator-= (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_iterator & | operator++ () |
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) |
比较成员下标迭代器的不等性。 更多... | |
成员下标迭代器。
根据指定类型提供的下标操作枚举其成员的随机访问迭代器。
在文件 iterator.hpp 第 1380 行定义.
using ystdex::subscriptive_iterator< _tCon, _type >::container_type = _tCon |
在文件 iterator.hpp 第 1383 行定义.
using ystdex::subscriptive_iterator< _tCon, _type >::difference_type = ptrdiff_t |
在文件 iterator.hpp 第 1386 行定义.
using ystdex::subscriptive_iterator< _tCon, _type >::iterator_category = std::random_access_iterator_tag |
在文件 iterator.hpp 第 1384 行定义.
using ystdex::subscriptive_iterator< _tCon, _type >::pointer = _type* |
在文件 iterator.hpp 第 1387 行定义.
using ystdex::subscriptive_iterator< _tCon, _type >::reference = _type& |
在文件 iterator.hpp 第 1388 行定义.
using ystdex::subscriptive_iterator< _tCon, _type >::value_type = _type |
在文件 iterator.hpp 第 1385 行定义.
|
inline |
在文件 iterator.hpp 第 1397 行定义.
参考自 ystdex::subscriptive_iterator< _tCon, _type >::operator+() , 以及 ystdex::subscriptive_iterator< _tCon, _type >::operator-().
|
inline |
|
inline |
在文件 iterator.hpp 第 1491 行定义.
参考 ystdex::subscriptive_iterator< _tCon, _type >::con_ptr , 以及 ystdex::subscriptive_iterator< _tCon, _type >::idx.
|
inline |
|
inline |
在文件 iterator.hpp 第 1419 行定义.
参考 ystdex::subscriptive_iterator< _tCon, _type >::con_ptr , 以及 ystdex::subscriptive_iterator< _tCon, _type >::idx.
|
inline |
|
inline |
在文件 iterator.hpp 第 1431 行定义.
|
inline |
在文件 iterator.hpp 第 1437 行定义.
|
inline |
在文件 iterator.hpp 第 1402 行定义.
|
inline |
|
inline |
在文件 iterator.hpp 第 1446 行定义.
|
inline |
在文件 iterator.hpp 第 1452 行定义.
|
inline |
在文件 iterator.hpp 第 1409 行定义.
参考 ystdex::subscriptive_iterator< _tCon, _type >::idx , 以及 yassume.
|
inline |
在文件 iterator.hpp 第 1425 行定义.
|
inline |
|
related |
比较成员下标迭代器的不等性。
在文件 iterator.hpp 第 1521 行定义.
|
related |
|
protected |
在文件 iterator.hpp 第 1392 行定义.
参考自 ystdex::subscriptive_iterator< _tCon, _type >::container(), ystdex::subscriptive_iterator< _tCon, _type >::equals(), ystdex::subscriptive_iterator< _tCon, _type >::operator*(), ystdex::subscriptive_iterator< _tCon, _type >::operator+(), ystdex::subscriptive_iterator< _tCon, _type >::operator-() , 以及 ystdex::subscriptive_iterator< _tCon, _type >::operator[]().
|
protected |
在文件 iterator.hpp 第 1393 行定义.
参考自 ystdex::subscriptive_iterator< _tCon, _type >::equals(), ystdex::subscriptive_iterator< _tCon, _type >::index(), ystdex::subscriptive_iterator< _tCon, _type >::operator*(), ystdex::subscriptive_iterator< _tCon, _type >::operator+(), ystdex::subscriptive_iterator< _tCon, _type >::operator++(), ystdex::subscriptive_iterator< _tCon, _type >::operator+=(), ystdex::subscriptive_iterator< _tCon, _type >::operator-(), ystdex::subscriptive_iterator< _tCon, _type >::operator--(), ystdex::subscriptive_iterator< _tCon, _type >::operator-=() , 以及 ystdex::subscriptive_iterator< _tCon, _type >::operator[]().