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

目标编码迭代器类型。 更多...

#include <textmgr.h>

类 YSLib::Text::TextFileBuffer::Iterator 继承关系图:
YSLib::Text::TextFileBuffer::Iterator 的协作图:

Public 成员函数

 Iterator (TextFileBuffer *={}, size_t=0, size_t=0) ynothrow
 构造:指定文本读取位置。
 
Iteratoroperator++ () ynothrow
 迭代:循环向后遍历。
 
Iteratoroperator-- () ynothrow
 迭代:循环向前遍历。
 
ucs2_t operator* () const ynothrow
 
TextFileBufferGetBufferPtr () const ynothrow
 
size_t GetBlockN () const ynothrow
 
size_t GetIndexN () const ynothrow
 

Private 属性

TextFileBufferpBuffer
 
size_t block
 
size_t index
 

友元

class TextFileBuffer
 
YF_API friend bool operator== (const Iterator &, const Iterator &) ynothrow
 比较:相等关系。
 

详细描述

目标编码迭代器类型。

自从
build 273

在文件 textmgr.h64 行定义.

构造及析构函数说明

TextFileBuffer::Iterator::Iterator ( TextFileBuffer pBuf = {},
size_t  b = 0,
size_t  idx = 0 
)

构造:指定文本读取位置。

在文件 textmgr.cpp50 行定义.

成员函数说明

size_t YSLib::Text::TextFileBuffer::Iterator::GetBlockN ( ) const
inline

在文件 textmgr.h105 行定义.

参考自 YSLib::Text::TextFileBuffer::GetPosition().

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

TextFileBuffer* YSLib::Text::TextFileBuffer::Iterator::GetBufferPtr ( ) const
inline

在文件 textmgr.h104 行定义.

size_t YSLib::Text::TextFileBuffer::Iterator::GetIndexN ( ) const
inline

在文件 textmgr.h106 行定义.

参考自 YSLib::Text::TextFileBuffer::GetPosition().

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

ucs2_t TextFileBuffer::Iterator::operator* ( ) const

在文件 textmgr.cpp91 行定义.

参考 ystdex::iterator_transformation::first() , 以及 YAssert.

函数调用图:

TextFileBuffer::Iterator & TextFileBuffer::Iterator::operator++ ( )

迭代:循环向后遍历。

在文件 textmgr.cpp56 行定义.

参考 ystdex::iterator_transformation::first(),YAssert,YB_UNLIKELY , 以及 yunseq().

函数调用图:

TextFileBuffer::Iterator & TextFileBuffer::Iterator::operator-- ( )

迭代:循环向前遍历。

在文件 textmgr.cpp71 行定义.

参考 ystdex::iterator_transformation::first() , 以及 YAssert.

函数调用图:

友元及相关函数文档

YF_API friend bool operator== ( const Iterator ,
const Iterator  
)
friend

比较:相等关系。

friend class TextFileBuffer
friend

在文件 textmgr.h68 行定义.

类成员变量说明

size_t YSLib::Text::TextFileBuffer::Iterator::block
private

在文件 textmgr.h73 行定义.

size_t YSLib::Text::TextFileBuffer::Iterator::index
private

在文件 textmgr.h74 行定义.

TextFileBuffer* YSLib::Text::TextFileBuffer::Iterator::pBuffer
private

在文件 textmgr.h71 行定义.


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