YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ystdex::ifile_iterator类 参考

基于 ISO C 标准库的流只读迭代器。 更多...

#include <cstdio.h>

类 ystdex::ifile_iterator 继承关系图:
ystdex::ifile_iterator 的协作图:

Public 类型

using char_type = byte
 

Public 成员函数

 ifile_iterator ()
 无参数构造。 更多...
 
 ifile_iterator (std::FILE *ptr)
 构造:使用流引用。 更多...
 
 ifile_iterator (const ifile_iterator &)=default
 复制构造:默认实现。 更多...
 
 ~ifile_iterator ()=default
 
reference operator* () const
 
pointer operator-> () const
 
ifile_iteratoroperator++ ()
 
ifile_iterator operator++ (int)
 
std::FILE * get_stream () const
 

Protected 类型

using traits_type = std::iterator< std::input_iterator_tag, byte, ptrdiff_t, const byte *, const byte & >
 

Private 属性

std::FILE * stream
 流指针。 更多...
 
char_type value
 

友元

bool operator== (const ifile_iterator &x, const ifile_iterator &y)
 

详细描述

基于 ISO C 标准库的流只读迭代器。

自从
build 245

在文件 cstdio.h73 行定义.

成员类型定义说明

在文件 cstdio.h81 行定义.

using ystdex::ifile_iterator::traits_type = std::iterator<std::input_iterator_tag, byte, ptrdiff_t, const byte*, const byte&>
protected

在文件 cstdio.h78 行定义.

构造及析构函数说明

ystdex::ifile_iterator::ifile_iterator ( )
inline

无参数构造。

后置条件
!stream

构造空流迭代器。

在文件 cstdio.h99 行定义.

ystdex::ifile_iterator::ifile_iterator ( std::FILE *  ptr)
inlineexplicit

构造:使用流引用。

前置条件
ptr
后置条件
stream == ptr
自从
build 458

在文件 cstdio.h109 行定义.

参考 yconstraint.

ystdex::ifile_iterator::ifile_iterator ( const ifile_iterator )
inlinedefault

复制构造:默认实现。

ystdex::ifile_iterator::~ifile_iterator ( )
default

成员函数说明

std::FILE* ystdex::ifile_iterator::get_stream ( ) const
inline

在文件 cstdio.h168 行定义.

reference ystdex::ifile_iterator::operator* ( ) const
inline
自从
build 461

在文件 cstdio.h124 行定义.

ifile_iterator & ystdex::ifile_iterator::operator++ ( )

在文件 cstdio.cpp139 行定义.

参考 stream, value, yassume , 以及 YB_UNLIKELY.

ifile_iterator ystdex::ifile_iterator::operator++ ( int  )
inline

在文件 cstdio.h153 行定义.

pointer ystdex::ifile_iterator::operator-> ( ) const
inline

在文件 cstdio.h130 行定义.

友元及相关函数文档

bool operator== ( const ifile_iterator x,
const ifile_iterator y 
)
friend

在文件 cstdio.h162 行定义.

类成员变量说明

std::FILE* ystdex::ifile_iterator::stream
private

流指针。

自从
build 458

在文件 cstdio.h88 行定义.

参考自 operator++().

char_type ystdex::ifile_iterator::value
private

在文件 cstdio.h89 行定义.

参考自 operator++().


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