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

动态泛型输入迭代器。 更多...

#include <any_iterator.hpp>

类 ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference > 继承关系图:
ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference > 的协作图:

Public 类型

using pointer = _tPointer
 
using reference = _tReference
 

Public 成员函数

 any_input_iterator ()=default
 
template<typename _tIterator >
 any_input_iterator (_tIterator &&i)
 构造:使用现有迭代器。 更多...
 
 any_input_iterator (const any_input_iterator &)=default
 
 any_input_iterator (any_input_iterator &&)=default
 
reference operator* () const
 
pointer operator-> () const
 
any_input_iteratoroperator++ ()
 
any get () const
 
bool check_undereferenceable () const
 
any_input_iteratoroperator= (const any_input_iterator &)=default
 
any_input_iteratoroperator= (any_input_iterator &&)=default
 
bool equals (const any_input_iterator &i) const
 

额外继承的成员函数

- Protected 成员函数 继承自 ystdex::any
 any ()
 
template<typename _type , typename = exclude_self_ctor_t<any, _type>>
 any (_type &&x)
 
 any (const any &)
 
 any (any &&a)
 
 ~any ()
 
template<typename _type >
anyoperator= (const _type &x)
 
anyoperator= (const any &a)
 复制赋值:使用复制和交换。 更多...
 
anyoperator= (any &&a)
 转移赋值:使用复制和交换。 更多...
 
bool operator! () const
 
 operator bool () const
 
bool empty () const
 
void * get () const
 
any_ops::holderget_holder () const
 
void clear ()
 
void swap (any &a)
 
const std::type_info & type () const
 
template<typename _type >
 any (std::reference_wrapper< _type > x)
 
template<typename _tHolder >
 any (any_ops::holder_tag, std::unique_ptr< _tHolder > p)
 构造:使用指定持有者。 更多...
 
template<typename _type >
 any (_type &&x, any_ops::holder_tag)
 
template<typename _type >
_type * target ()
 
template<typename _type >
const _type * target () const
 
- Protected 属性 继承自 ystdex::any
any_ops::any_storage storage
 
any_ops::any_manager manager
 

详细描述

template<typename _type, typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
class ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >

动态泛型输入迭代器。

自从
build 400
警告
非虚析构。

在文件 any_iterator.hpp236 行定义.

成员类型定义说明

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
using ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::pointer = _tPointer

在文件 any_iterator.hpp240 行定义.

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
using ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::reference = _tReference

在文件 any_iterator.hpp241 行定义.

构造及析构函数说明

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::any_input_iterator ( )
default
自从
build 357
template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
template<typename _tIterator >
ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::any_input_iterator ( _tIterator &&  i)
inline

构造:使用现有迭代器。

自从
build 356

在文件 any_iterator.hpp250 行定义.

参考 ystdex::any::manager, ystdex::any::storage , 以及 yforward.

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::any_input_iterator ( const any_input_iterator< _type, _tDifference, _tPointer, _tReference > &  )
default
自从
build 356
template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::any_input_iterator ( any_input_iterator< _type, _tDifference, _tPointer, _tReference > &&  )
default
自从
build 356

成员函数说明

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
bool ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::check_undereferenceable ( ) const
inline
template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
bool ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::equals ( const any_input_iterator< _type, _tDifference, _tPointer, _tReference > &  i) const
inline
自从
build 355

在文件 any_iterator.hpp341 行定义.

参考 ystdex::any_ops::equals, ystdex::any::manager, ystdex::any::storage, ystdex::any::type() , 以及 yassume.

函数调用图:

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
any ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::get ( ) const
inline
自从
build 349

在文件 any_iterator.hpp319 行定义.

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
reference ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::operator* ( ) const
inline
template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
any_input_iterator& ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::operator++ ( )
inline
template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
pointer ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::operator-> ( ) const
inline

在文件 any_iterator.hpp304 行定义.

template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
any_input_iterator& ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::operator= ( const any_input_iterator< _type, _tDifference, _tPointer, _tReference > &  )
default
自从
build 454
template<typename _type , typename _tDifference = ptrdiff_t, typename _tPointer = _type*, typename _tReference = _type&>
any_input_iterator& ystdex::any_input_iterator< _type, _tDifference, _tPointer, _tReference >::operator= ( any_input_iterator< _type, _tDifference, _tPointer, _tReference > &&  )
default

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