亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? char_producer.html

?? ISO_C++:C++_STL開發(fā)文檔
?? HTML
字號(hào):
<HTML><!--  -- Copyright (c) 1996-1999  -- Silicon Graphics Computer Systems, Inc.  --  -- Permission to use, copy, modify, distribute and sell this software  -- and its documentation for any purpose is hereby granted without fee,  -- provided that the above copyright notice appears in all copies and  -- that both that copyright notice and this permission notice appear  -- in supporting documentation.  Silicon Graphics makes no  -- representations about the suitability of this software for any  -- purpose.  It is provided "as is" without express or implied warranty.  --  -- Copyright (c) 1994  -- Hewlett-Packard Company  --  -- Permission to use, copy, modify, distribute and sell this software  -- and its documentation for any purpose is hereby granted without fee,  -- provided that the above copyright notice appears in all copies and  -- that both that copyright notice and this permission notice appear  -- in supporting documentation.  Hewlett-Packard Company makes no  -- representations about the suitability of this software for any  -- purpose.  It is provided "as is" without express or implied warranty.  --  --><Head><Title>char_producer</Title><!-- Generated by htmldoc --></HEAD><BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b" 	ALINK="#ff0000"> <IMG SRC="CorpID.gif"      ALT="SGI" HEIGHT="43" WIDTH="151"> <!--end header--><BR Clear><H1>char_producer</H1><Table CellPadding=0 CellSpacing=0 width=100%><TR><TD Align=left><Img src = "containers.gif" Alt=""   WIDTH = "194"  HEIGHT = "38" ></TD><TD Align=right><Img src = "type.gif" Alt=""   WIDTH = "194"  HEIGHT = "39" ></TD></TR><TR><TD Align=left VAlign=top><b>Category</b>: containers</TD><TD Align=right VAlign=top><b>Component type</b>: type</TD></TR></Table><h3>Description</h3><tt>Char_producter&lt;charT&gt;</tt> is a helper class for <tt><A href="Rope.html">rope</A></tt>.  Its onlypurpose is for the creation of <tt>rope</tt>s that use lazy evaluation.  A<tt>rope</tt> that uses lazy evaluation is one that does not storethe value of the <tt>n</tt>th character until the value of that particularcharacter is actually needed.  This is sometimes a useful optimization.<P><tt>Char_producer&lt;charT&gt;</tt> is an abstract base class; it provides anempty virtual destructor and a pure virtual <tt>operator()</tt>.  Only subclasses of <tt>char_producer</tt> can be used, not <tt>char_producer</tt>directly.<P>Classes derived from <tt>char_producer</tt> define a method for computing thecharacters in a <tt><A href="Rope.html">rope</A></tt> lazily, whenever those characters areneeded.  Unlike <A href="functors.html">Function Objects</A>, <tt>char_producer</tt>s can be storedinside a <tt><A href="Rope.html">rope</A></tt> data structure.  All char producers must be derivedfrom the single base class <tt>char_producer</tt>.<P>For performance reasons, the <tt>operator()</tt> inside <tt>char_producer</tt> isinvoked to fill a buffer with a sequence of characters rather than producing a single character at a time.  Its declarationis<pre>  virtual void operator()(size_t start_pos, size_t len, charT* buffer) = 0;</pre><P>An invocation of <tt>operator()</tt> requests that <tt>len</tt> characters startingat <tt>start_pos</tt> should be deposited into <tt>buffer</tt>.  Ifthe character at the <tt>n</tt>th position is requested twice, the samecharacter must be returned both times. (That is, a <tt>char_producer</tt>must represent a specific, deterministic sequence of characters.)<P>The following is an example of how to use <tt>char_producer</tt> and lazyevaluation: it is a (somewhat naive implementation of a)<tt>char_producer</tt> subclass, which allows an entire file to be treated asa <tt><A href="Rope.html">rope</A></tt>.  A <tt>rope</tt> constructed from <tt>file_char_prod</tt> will contain thesame character sequence as the file specified in the constructor.  Thefile will be read only when the <tt>rope</tt> is accessed, not when the<tt>rope</tt> is constructed.<pre>void fail(char* s) {   fprintf(stderr, &quot;%s errno = %d\n&quot;, s, errno);   exit(1); }class file_char_prod : public char_producer&lt;char&gt; {  public:    FILE* f;    file_char_prod(char *file_name) {      if (NULL == (f = fopen(file_name, &quot;rb&quot;)))         fail(&quot;Open failed&quot;);    }    ~file_char_prod() { fclose(f); }    virtual void operator()(size_t start_pos, size_t len, char* buffer) {      if (fseek(f, start_pos, SEEK_SET)) fail(&quot;Seek failed&quot;);      if (fread(buffer, sizeof(char), len, f) &lt; len) fail(&quot;Read failed&quot;);    }    long len() {        // Return the length of a file; this is the only        //   mechanism that the standard C library makes possible.      if (fseek(f, 0, SEEK_END)) fail(&quot;Seek failed&quot;);      return ftell(f);    }};</pre><P>The following program uses the above class to extract and write themiddle 200 characters of a file.  Note that even if it is invoked on agigabyte file, it will still only read approximately 200 charactersfrom the file.  Likewise, the <tt>rope</tt> will only require a small amount ofmemory.<pre>int main(int argc, char** argv){  if (argc != 2)     fail(&quot;wrong number of arguments&quot;);  file_char_prod* fcp = new file_char_prod(argv[1]);  <A href="Rope.html">crope</A> s(fcp, fcp -&gt; len(), true);  size_t len = s.size();  <A href="Rope.html">crope</A> middle = s.substr(len/2 - 100, 200) + &quot;\n&quot;;  fwrite(middle.c_str(), sizeof(char), middle.size(), stdout);}</pre><h3>Definition</h3>Defined in <A href="rope">rope</A>, and in the backward-compatibility header <A href="rope.h">rope.h</A>.The <tt>char_producer</tt> class is an SGI extension; it is not part of the C++standard.<h3>Template parameters</h3><Table border><TR><TH>Parameter</TH><TH>Description</TH><TH>Default</TH></TR><TR><TD VAlign=top><tt>charT</tt></TD><TD VAlign=top>The character type</TD><TD VAlign=top>&nbsp;</TD></tr></table><h3>Model of</h3><A href="Assignable.html">Assignable</A><h3>Type requirements</h3><tt>charT</tt> is a model of <A href="Assignable.html">Assignable</A>.<h3>Members</h3><Table border><TR><TH>Member</TH><TH>Where defined</TH><TH>Description</TH></TR><TR><TD VAlign=top><tt>virtual ~char_producer()</tt></TD><TD VAlign=top><tt>char_producer</tt></TD><TD VAlign=top>A virtual destructor.</TD></TR><TR><TD VAlign=top>&nbsp;</TD><TD VAlign=top><pre>virtual void operator()(size_t start_pos,                         size_t len,                        charT* buffer)</pre></TD><TD VAlign=top>Copy <tt>len</tt> characters starting at position <tt>start_pos</tt> in the    string into <tt>buffer</tt>.  If a character at a particular    position is requested more than once, each request must result in    the same character.  Note that this is a pure virtual function; it    must be overridden by every subclass of <tt>char_producer</tt>.</TD></tr></table><h3>Notes</h3><h3>See also</h3><tt><A href="Rope.html">rope</A></tt>, <A href="functors.html">Function object</A><!--start footer--> <HR SIZE="6"><A href="http://www.sgi.com/"><IMG SRC="surf.gif" HEIGHT="54" WIDTH="54"         ALT="[Silicon Surf]"></A><A HREF="index.html"><IMG SRC="stl_home.gif"         HEIGHT="54" WIDTH="54" ALT="[STL Home]"></A><BR><FONT SIZE="-2"><A href="http://www.sgi.com/Misc/sgi_info.html" TARGET="_top">Copyright &copy; 1999 Silicon Graphics, Inc.</A> All Rights Reserved.</FONT><FONT SIZE="-3"><a href="http://www.sgi.com/Misc/external.list.html" TARGET="_top">TrademarkInformation</A></FONT><P></BODY></HTML> 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区三区四区不卡| 99久久精品免费看| 欧美一区二区三区在线视频| 亚洲成人动漫av| 4438成人网| 久久66热re国产| 久久精品人人爽人人爽| 成人做爰69片免费看网站| 日韩码欧中文字| 欧美图片一区二区三区| 日韩不卡一区二区三区| 精品国产一区二区三区久久久蜜月 | 日韩毛片高清在线播放| 91九色02白丝porn| 日本美女视频一区二区| 久久久久久黄色| 色综合网色综合| 美国十次综合导航| 国产精品高潮呻吟久久| 欧美午夜寂寞影院| 久久精品国产秦先生| 国产精品污污网站在线观看| 色先锋资源久久综合| 免费国产亚洲视频| 国产精品久久久一本精品| 欧美日韩国产影片| 国产精品一区二区你懂的| 亚洲欧洲制服丝袜| 日韩欧美不卡一区| 色香色香欲天天天影视综合网| 日韩 欧美一区二区三区| 欧美国产精品专区| 91.成人天堂一区| 成a人片亚洲日本久久| 日本午夜一本久久久综合| 国产亲近乱来精品视频| 制服.丝袜.亚洲.中文.综合| 成人免费视频免费观看| 卡一卡二国产精品| 亚洲一区影音先锋| 国产日产欧美精品一区二区三区| 欧美日韩一区二区在线视频| 成人综合在线观看| 精彩视频一区二区三区| 亚洲电影视频在线| 国产精品久久久久久久浪潮网站| 欧美成人在线直播| 欧美色视频在线观看| 国产不卡一区视频| 免费成人在线观看视频| 亚洲国产日韩在线一区模特| 成人欧美一区二区三区白人| 久久蜜桃av一区精品变态类天堂 | 亚洲第一会所有码转帖| 国产精品丝袜在线| 欧美成人高清电影在线| 欧美三级电影一区| 日本久久一区二区三区| 丁香激情综合国产| 国产一区二区导航在线播放| 日本不卡视频一二三区| 亚洲综合色噜噜狠狠| 亚洲欧美经典视频| 国产精品第四页| 日本一区二区成人| 久久影院视频免费| 精品成a人在线观看| 日韩欧美国产一二三区| 欧美精品精品一区| 欧美猛男超大videosgay| 欧美中文字幕一区二区三区| 色婷婷av一区二区| 色婷婷综合久久久中文一区二区 | 精品久久五月天| 欧美一区二区在线视频| 91精品久久久久久久久99蜜臂| 欧美在线观看视频在线| 欧美在线影院一区二区| 欧美视频在线观看一区二区| 在线免费观看一区| 欧美视频完全免费看| 欧美夫妻性生活| 欧美一区二区精品久久911| 日韩三级视频在线观看| 精品1区2区在线观看| 久久久影院官网| 国产精品毛片无遮挡高清| 国产精品高潮呻吟| 怡红院av一区二区三区| 亚洲成人精品一区| 久久精品国产久精国产爱| 激情另类小说区图片区视频区| 精品一区二区在线播放| 国产高清无密码一区二区三区| 夫妻av一区二区| 91成人在线免费观看| 欧美疯狂做受xxxx富婆| 精品成人佐山爱一区二区| 中文字幕第一区二区| 亚洲麻豆国产自偷在线| 亚洲一区二区在线播放相泽| 日韩精彩视频在线观看| 国产成人综合在线| 欧美亚洲综合在线| 午夜精品久久久久久久蜜桃app| 欧美一区二区免费观在线| 91精品国产综合久久久久久久久久| 精品区一区二区| 中文字幕av不卡| 亚洲一区二区三区激情| 美女视频网站久久| 亚洲乱码精品一二三四区日韩在线| 欧美日韩一区二区三区在线看| 欧美乱妇20p| 欧美激情综合在线| 一区二区三区美女视频| 日本不卡高清视频| 国产91露脸合集magnet| 欧洲av一区二区嗯嗯嗯啊| 久久亚洲精品小早川怜子| 亚洲最大的成人av| 激情丁香综合五月| 精品视频色一区| 国产午夜亚洲精品羞羞网站| 亚洲成人你懂的| 成人激情校园春色| 欧美一区二区三区在线视频| 一色桃子久久精品亚洲| 捆绑紧缚一区二区三区视频| 色综合久久久久久久| 精品三级在线观看| 亚洲成人www| 91在线视频播放地址| 欧美va亚洲va香蕉在线| 亚洲成a人片在线观看中文| 久草在线在线精品观看| 日本高清不卡aⅴ免费网站| 精品国产凹凸成av人导航| 亚洲日本丝袜连裤袜办公室| 国产一区二区三区四区五区美女| 精品污污网站免费看| 国产亚洲综合av| 毛片av一区二区| 色偷偷成人一区二区三区91| 亚洲国产精品99久久久久久久久| 亚洲男同1069视频| 国产成人在线视频免费播放| 欧美久久久久久蜜桃| 亚洲人成网站色在线观看| 午夜不卡av免费| 99视频在线精品| 2022国产精品视频| 日韩精品一级二级| 欧美视频一区二区在线观看| 久久精品视频免费观看| 蜜桃精品视频在线| 3d动漫精品啪啪1区2区免费| 中文字幕久久午夜不卡| 成人一区二区三区视频在线观看 | 欧美日精品一区视频| 亚洲色图制服诱惑 | 一区二区三区日本| 丰满亚洲少妇av| 国产精品全国免费观看高清| 国内精品国产成人国产三级粉色| 欧美一级久久久| 中文字幕一区在线| 成人黄色免费短视频| 国产欧美日韩亚州综合| 精品亚洲成a人在线观看| 精品美女一区二区| 日本欧美在线看| 欧美www视频| 日韩av电影天堂| 欧美日韩国产不卡| 久久国产精品99久久久久久老狼| 欧美熟乱第一页| 日精品一区二区三区| 欧美日韩一区二区三区在线 | 不卡一卡二卡三乱码免费网站| 日韩欧美一区二区免费| 久久精品国产亚洲a| 日韩一级高清毛片| 精品一区二区三区视频在线观看 | 尤物视频一区二区| 色综合色综合色综合 | 色婷婷亚洲精品| 午夜天堂影视香蕉久久| 欧美午夜免费电影| 久久99精品久久久久久久久久久久 | 国产毛片精品国产一区二区三区| 日韩欧美亚洲另类制服综合在线| 久久精品噜噜噜成人88aⅴ| 国产亚洲精品中文字幕| 国产成人午夜电影网| 亚洲免费观看高清完整版在线观看| 91香蕉国产在线观看软件| 日韩精品乱码av一区二区| 欧美va亚洲va香蕉在线| 99国产精品久久久久久久久久|