📄 classfg__blist.html
字号:
<!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_BList< ITEM > 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_BList< ITEM >模板类参考<br><small>[<a class="el" href="group__Utility.html">应用包</a>]</small></h1><code>#include <<a class="el" href="FG__List_8h-source.html">FG_List.h</a>></code><p><a href="classFG__BList-members.html">所有成员的列表。</a><hr><a name="_details"></a><h2>详细描述</h2><h3>template<class ITEM><br> class FG_BList< ITEM ></h3>双向链表容器类. <p><dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>ITEM</em> </td><td>其中保存的对象类型,容器中保存指向ITEM对象的指针,并且不负责对象的释放 </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#l00635">635</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>typedef <a class="el" href="structFG__BList__Node.html">FG_BList_Node</a>< ITEM > </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#w0">node</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">双向链表容器类中的节点类型. <a href="#w0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>typedef ITEM </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#w1">item</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">双向链表容器类中的节点中保存的对象的类型. <a href="#w1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="classFG__ForwardIterator.html">FG_ForwardIterator</a><<br> <a class="el" href="structFG__BList__Node.html">FG_BList_Node</a>< ITEM >, ITEM > </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#w2">forward_iterator</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">双向链表容器类中使用的正向迭代器类型. <a href="#w2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="classFG__BackIterator.html">FG_BackIterator</a>< ITEM > </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#w3">back_iterator</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">双向链表容器类中使用的反向迭代器类型. <a href="#w3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a>< ITEM > </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#w4">loop_iterator</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">双向链表容器类中使用的循环迭代器类型. <a href="#w4"></a><br><br></td></tr><tr><td colspan=2><br><h2>公有成员</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#a0">FG_BList</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">双向链表容器类的缺省构造函数. <a href="#a0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#a1">~FG_BList</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">双向链表容器类的析构函数. <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classFG__LoopIterator.html">loop_iterator</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#a2">Loop</a> (<a class="el" href="classFG__BList.html#w1">item</a> *const pItem) const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">返回循环迭代器 <a href="#a2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classFG__ForwardIterator.html">forward_iterator</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#a3">First</a> () const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">返回指向第一个对象的正向迭代器 <a href="#a3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classFG__BackIterator.html">back_iterator</a> </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#a4">Last</a> () const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">返回指向最后一个对象的反向迭代器 <a href="#a4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>template<class ITERATOR> bool </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#a5">Remove</a> (const ITERATOR i)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">删除一个对象. <a href="#a5"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#a6">Add</a> (<a class="el" href="classFG__BList.html#w1">item</a> *const pItem)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">添加一个对象. <a href="#a6"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#a7">Remove</a> (<a class="el" href="classFG__BList.html#w1">item</a> *const pItem)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">删除一个对象. <a href="#a7"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#a8">RemoveAll</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">删除容器中的所有对象. <a href="#a8"></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="classFG__BList.html#w0">node</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#r0">m_pFirst</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">指向双向链表中的第一个节点的指针. <a href="#r0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classFG__BList.html#w0">node</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classFG__BList.html#r1">m_pLast</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">指向双向链表中的最后一个节点的指针. <a href="#r1"></a><br><br></td></tr></table><hr><h2>成员类型定义文档</h2><a class="anchor" name="w3" doxytag="FG_BList::back_iterator" ></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<class ITEM> </td> </tr> <tr> <td class="md" nowrap valign="top"> typedef <a class="el" href="classFG__BackIterator.html">FG_BackIterator</a><ITEM> <a class="el" href="classFG__BList.html">FG_BList</a>< ITEM >::<a class="el" href="classFG__BackIterator.html">back_iterator</a> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>双向链表容器类中使用的反向迭代器类型. <p><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00652">652</a>行定义。 </td> </tr></table><a class="anchor" name="w2" doxytag="FG_BList::forward_iterator" ></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<class ITEM> </td> </tr> <tr> <td class="md" nowrap valign="top"> typedef <a class="el" href="classFG__ForwardIterator.html">FG_ForwardIterator</a><<a class="el" href="structFG__BList__Node.html">FG_BList_Node</a><ITEM>, ITEM> <a class="el" href="classFG__BList.html">FG_BList</a>< ITEM >::<a class="el" href="classFG__ForwardIterator.html">forward_iterator</a> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>双向链表容器类中使用的正向迭代器类型. <p><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00648">648</a>行定义。 </td> </tr></table><a class="anchor" name="w1" doxytag="FG_BList::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<class ITEM> </td> </tr> <tr> <td class="md" nowrap valign="top"> typedef ITEM <a class="el" href="classFG__BList.html">FG_BList</a>< ITEM >::<a class="el" href="classFG__BList.html#w1">item</a> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>双向链表容器类中的节点中保存的对象的类型. <p><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00644">644</a>行定义。 </td> </tr></table><a class="anchor" name="w4" doxytag="FG_BList::loop_iterator" ></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<class ITEM> </td> </tr> <tr> <td class="md" nowrap valign="top"> typedef <a class="el" href="classFG__LoopIterator.html">FG_LoopIterator</a><ITEM> <a class="el" href="classFG__BList.html">FG_BList</a>< ITEM >::<a class="el" href="classFG__LoopIterator.html">loop_iterator</a> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>双向链表容器类中使用的循环迭代器类型. <p><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00656">656</a>行定义。<p>参考自 <a class="el" href="FG__List_8h-source.html#l00683">FG_BList< FG_Object >::Loop()</a>. </td> </tr></table><a class="anchor" name="w0" doxytag="FG_BList::node" ></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<class ITEM> </td> </tr> <tr> <td class="md" nowrap valign="top"> typedef <a class="el" href="structFG__BList__Node.html">FG_BList_Node</a><ITEM> <a class="el" href="classFG__BList.html">FG_BList</a>< ITEM >::<a class="el" href="classFG__BList.html#w0">node</a> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>双向链表容器类中的节点类型. <p><p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00640">640</a>行定义。<p>参考自 <a class="el" href="FG__List_8h-source.html#l00720">FG_BList< FG_Object >::Add()</a>. </td> </tr></table><hr><h2>构造及析构函数文档</h2><a class="anchor" name="a0" doxytag="FG_BList::FG_BList" ></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<class ITEM> </td> </tr> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classFG__BList.html">FG_BList</a>< ITEM >::<a class="el" href="classFG__BList.html">FG_BList</a> </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>双向链表容器类的缺省构造函数. <p>初始化前驱和后继指针 <p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00663">663</a>行定义。 </td> </tr></table><a class="anchor" name="a1" doxytag="FG_BList::~FG_BList" ></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<class ITEM> </td> </tr> <tr> <td class="md" nowrap valign="top"> virtual <a class="el" href="classFG__BList.html">FG_BList</a>< ITEM >::~<a class="el" href="classFG__BList.html">FG_BList</a> </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>双向链表容器类的析构函数. <p>删除所有的节点对象,但是不负责删除节点中保存的ITEM对象 <p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00670">670</a>行定义。 </td> </tr></table><hr><h2>成员函数文档</h2><a class="anchor" name="a6" doxytag="FG_BList::Add" ></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<class ITEM> </td> </tr> <tr> <td class="md" nowrap valign="top"> bool <a class="el" href="classFG__BList.html">FG_BList</a>< ITEM >::Add </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFG__BList.html#w1">item</a> *const </td> <td class="mdname1" valign="top" nowrap> <em>pItem</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -