⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classfg__loopiterator.html

📁 《道法自然》书的源码FishGUI,一个跨平台的界面库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=gb2312"><title>FishGUI:  TemplateFG_LoopIterator&lt; ITEM &gt; class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- 制作者 Doxygen 1.3.6 --><div class="qindex"><a class="qindex" href="main.html">首页</a> | <a class="qindex" href="modules.html">模块</a> | <a class="qindex" href="hierarchy.html">类继承关系</a> | <a class="qindex" href="classes.html">按字典顺序排序的列表</a> | <a class="qindex" href="annotated.html">组合类型列表</a> | <a class="qindex" href="files.html">文件列表</a> | <a class="qindex" href="functions.html">组合类型成员</a> | <a class="qindex" href="globals.html">文件成员</a></div><h1>FG_LoopIterator&lt; ITEM &gt;模板类参考<br><small>[<a class="el" href="group__Utility.html">应用包</a>]</small></h1><code>#include &lt;<a class="el" href="FG__List_8h-source.html">FG_List.h</a>&gt;</code><p>FG_LoopIterator&lt; ITEM &gt;合作图:<p><center><img src="classFG__LoopIterator__coll__graph.png" border="0" usemap="#FG__LoopIterator_3_01ITEM_01_4__coll__map" alt="Collaboration graph"></center><center><font size="2">[<a target="top" href="graph_legend.html">图例</a>]</font></center><a href="classFG__LoopIterator-members.html">所有成员的列表。</a><hr><a name="_details"></a><h2>详细描述</h2><h3>template&lt;class ITEM&gt;<br> class FG_LoopIterator&lt; ITEM &gt;</h3>循环迭代器类. <p>循环迭代器从起始对象指针开始遍历,直到容器中的最后一个对象, 然后再从容器中的第一个元素开始遍历,直到起始对象(不包括起始对象) <dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>ITEM</em>&nbsp;</td><td>节点中保存的对象类型 </td></tr>  </table></dl><p><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00353">353</a>行定义。<table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>公有成员</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a0">FG_LoopIterator</a> (<a class="el" href="structFG__BList__Node.html">FG_BList_Node</a>&lt; ITEM &gt; *const pFirst, ITEM *const pStart)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">循环迭代器的构造函数.  <a href="#a0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>ITEM &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a1">operator *</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载*运算符函数.  <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>ITEM *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a2">operator-&gt;</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载-&gt;运算符函数.  <a href="#a2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a3">operator ITEM *</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载转换运算符函数.  <a href="#a3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a4">IsDone</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">是否遍历结束,即循环遍历完容器中的所有对象.  <a href="#a4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a5">operator++</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载前置++运算符函数.  <a href="#a5"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a6">operator++</a> (int)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载后置++运算符函数.  <a href="#a6"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a7">operator==</a> (const <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a> &amp;i) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载==运算符函数.  <a href="#a7"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a8">operator!=</a> (const <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a> &amp;i) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载!=运算符函数.  <a href="#a8"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a9">operator==</a> (ITEM *const p) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载==运算符函数.  <a href="#a9"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#a10">operator!=</a> (ITEM *const p) const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">重载!=运算符函数.  <a href="#a10"></a><br><br></td></tr><tr><td colspan=2><br><h2>保护属性</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structFG__BList__Node.html">FG_BList_Node</a>&lt; ITEM &gt; *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#p0">m_pFirst</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">指向遍历的容器中的第一个对象的指针.  <a href="#p0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structFG__BList__Node.html">FG_BList_Node</a>&lt; ITEM &gt; *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#p1">m_pNode</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">循环迭代器当前指向的节点.  <a href="#p1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>ITEM *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#p2">m_pStart</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">指向开始循环遍历的第一个对象的指针.  <a href="#p2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFG__LoopIterator.html#p3">m_IsDone</a></td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">是否已经遍历结束的标志.  <a href="#p3"></a><br><br></td></tr></table><hr><h2>构造及析构函数文档</h2><a class="anchor" name="a0" doxytag="FG_LoopIterator::FG_LoopIterator" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class ITEM&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a>&lt; ITEM &gt;::<a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a> </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="structFG__BList__Node.html">FG_BList_Node</a>&lt; ITEM &gt; *const&nbsp;</td>          <td class="mdname" nowrap> <em>pFirst</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>ITEM *const&nbsp;</td>          <td class="mdname" nowrap> <em>pStart</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>循环迭代器的构造函数. <p><dl compact><dt><b>参数:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>pFirst</em>&nbsp;</td><td>指向容器中的第一个对象的指针 </td></tr>    <tr><td valign=top><em>pStart</em>&nbsp;</td><td>指向循环遍历的起始对象的指针 </td></tr>  </table></dl><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00362">362</a>行定义。<p>参考 <a class="el" href="FG__List_8h-source.html#l00502">FG_LoopIterator&lt; ITEM &gt;::m_IsDone</a>、<a class="el" href="FG__List_8h-source.html#l00488">FG_LoopIterator&lt; ITEM &gt;::m_pFirst</a>及<a class="el" href="FG__List_8h-source.html#l00494">FG_LoopIterator&lt; ITEM &gt;::m_pStart</a>.    </td>  </tr></table><hr><h2>成员函数文档</h2><a class="anchor" name="a4" doxytag="FG_LoopIterator::IsDone" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class ITEM&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> bool <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a>&lt; ITEM &gt;::IsDone </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>是否遍历结束,即循环遍历完容器中的所有对象. <p><dl compact><dt><b>返回:</b></dt><dd>true 已经遍历结束 false 还未遍历结束 </dd></dl><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00407">407</a>行定义。<p>参考 <a class="el" href="FG__List_8h-source.html#l00502">FG_LoopIterator&lt; ITEM &gt;::m_IsDone</a>.    </td>  </tr></table><a class="anchor" name="a1" doxytag="FG_LoopIterator::operator *" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class ITEM&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> ITEM&amp; <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a>&lt; ITEM &gt;::operator * </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>重载*运算符函数. <p>把循环迭代器转换成其指向的对象的引用 <dl compact><dt><b>返回:</b></dt><dd>循环迭代器转换成其指向的对象的引用 </dd></dl><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00383">383</a>行定义。    </td>  </tr></table><a class="anchor" name="a3" doxytag="FG_LoopIterator::operator ITEM *" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class ITEM&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a>&lt; ITEM &gt;::operator ITEM * </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>重载转换运算符函数. <p>把循环迭代器转换成其指向的对象的指针 <dl compact><dt><b>返回:</b></dt><dd>循环迭代器转换成其指向的对象的指针 </dd></dl><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00399">399</a>行定义。    </td>  </tr></table><a class="anchor" name="a10" doxytag="FG_LoopIterator::operator!=" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class ITEM&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> bool <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a>&lt; ITEM &gt;::operator!= </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">ITEM *const&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>p</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>重载!=运算符函数. <p>比较循环迭代器是否不指向某个特定的对象 <dl compact><dt><b>返回:</b></dt><dd>true 不是指向该对象 false 指向该对象 </dd></dl><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00484">484</a>行定义。    </td>  </tr></table><a class="anchor" name="a8" doxytag="FG_LoopIterator::operator!=" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class ITEM&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> bool <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a>&lt; ITEM &gt;::operator!= </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a>&lt; ITEM &gt; &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>i</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>重载!=运算符函数. <p>比较两个循环迭代器是否指向不同的对象 <dl compact><dt><b>返回:</b></dt><dd>true 指向不同的对象 false 指向同一个对象 </dd></dl><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00466">466</a>行定义。<p>参考 <a class="el" href="FG__List_8h-source.html#l00491">FG_LoopIterator&lt; ITEM &gt;::m_pNode</a>.    </td>  </tr></table><a class="anchor" name="a6" doxytag="FG_LoopIterator::operator++" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -