📄 classfg__slist.html
字号:
<td class="md" nowrap valign="top"> bool <a class="el" href="classFG__SList.html">FG_SList</a>< ITEM >::Add </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFG__SList.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><p>添加一个对象. <p><dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>pItem</em> </td><td>指向要添加的对象 </td></tr> </table></dl><dl compact><dt><b>返回:</b></dt><dd>添加操作是否成功<br> true 成功<br> 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#l00565">565</a>行定义。<p>参考自 <a class="el" href="FG__KeyMap_8h-source.html#l00095">FG_KeyMap::RegisterKey()</a>、<a class="el" href="FG__Model_8h-source.html#l00058">FG_Model::RegisterView()</a>及<a class="el" href="FG__TimerManager_8cpp-source.html#l00097">FG_TimerManager::StartTimer()</a>. </td> </tr></table><a class="anchor" name="a2" doxytag="FG_SList::First" ></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__ForwardIterator.html">iterator</a> <a class="el" href="classFG__SList.html">FG_SList</a>< ITEM >::First </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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#l00545">545</a>行定义。<p>参考自 <a class="el" href="FG__TimerManager_8cpp-source.html#l00146">FG_TimerManager::IsTimerStart()</a>、<a class="el" href="FG__TimerManager_8cpp-source.html#l00158">FG_TimerManager::KillAllTimer()</a>、<a class="el" href="FG__TimerManager_8cpp-source.html#l00129">FG_TimerManager::KillObjectTimer()</a>、<a class="el" href="FG__TimerManager_8cpp-source.html#l00113">FG_TimerManager::KillTimer()</a>、<a class="el" href="FG__TimerManager_8cpp-source.html#l00168">FG_TimerManager::OSMessage()</a>、<a class="el" href="FG__KeyMap_8cpp-source.html#l00059">FG_KeyMap::SendKey()</a>、<a class="el" href="FG__TimerManager_8cpp-source.html#l00097">FG_TimerManager::StartTimer()</a>、<a class="el" href="FG__Model_8h-source.html#l00070">FG_Model::UpdateView()</a>及<a class="el" href="FG__KeyMap_8cpp-source.html#l00050">FG_KeyMap::~FG_KeyMap()</a>. </td> </tr></table><a class="anchor" name="a5" doxytag="FG_SList::Remove" ></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__SList.html">FG_SList</a>< ITEM >::Remove </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classFG__SList.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><p>删除一个对象. <p>要在容器中寻找该对象 <dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>pItem</em> </td><td>指向要删除的对象 </td></tr> </table></dl><dl compact><dt><b>返回:</b></dt><dd>删除操作是否成功<br> true 成功<br> 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#l00583">583</a>行定义。 </td> </tr></table><a class="anchor" name="a3" doxytag="FG_SList::Remove" ></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__SList.html">FG_SList</a>< ITEM >::Remove </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classFG__ForwardIterator.html">iterator</a> </td> <td class="mdname1" valign="top" nowrap> <em>i</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><p>删除一个对象. <p><dl compact><dt><b>参数:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>i</em> </td><td>指向要删除的对象的迭代器 </td></tr> </table></dl><dl compact><dt><b>返回:</b></dt><dd>删除操作是否成功<br> true 成功<br> 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#l00555">555</a>行定义。<p>参考自 <a class="el" href="FG__TimerManager_8cpp-source.html#l00129">FG_TimerManager::KillObjectTimer()</a>、<a class="el" href="FG__TimerManager_8cpp-source.html#l00113">FG_TimerManager::KillTimer()</a>及<a class="el" href="FG__List_8h-source.html#l00555">FG_SList< FG_Object >::Remove()</a>. </td> </tr></table><a class="anchor" name="a6" doxytag="FG_SList::RemoveAll" ></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__SList.html">FG_SList</a>< ITEM >::RemoveAll </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><dl compact><dt><b>返回:</b></dt><dd>删除操作是否成功<br> true 成功<br> 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#l00607">607</a>行定义。<p>参考自 <a class="el" href="FG__TimerManager_8cpp-source.html#l00158">FG_TimerManager::KillAllTimer()</a>、<a class="el" href="FG__KeyMap_8cpp-source.html#l00050">FG_KeyMap::~FG_KeyMap()</a>及<a class="el" href="FG__List_8h-source.html#l00535">FG_SList< FG_Object >::~FG_SList()</a>. </td> </tr></table><hr><h2>成员数据文档</h2><a class="anchor" name="p0" doxytag="FG_SList::m_First" ></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__SList.html#w0">node</a> <a class="el" href="classFG__SList.html">FG_SList</a>< ITEM >::<a class="el" href="classFG__SList.html#p0">m_First</a><code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>指向单向链表中的第一个对象. <p><a class="el" href="structFG__SList__Node.html#o1">FG_SList_Node::m_pNext</a>指向单向链表中的第一个对象,不用node *可以简化添加和删除操作 <p>在文件<a class="el" href="FG__List_8h-source.html">FG_List.h</a>第<a class="el" href="FG__List_8h-source.html#l00626">626</a>行定义。 </td> </tr></table><hr>该类的文档由以下文件生成:<ul><li><a class="el" href="FG__List_8h-source.html">FG_List.h</a></ul><hr><center>由 DoxyGen 1.3.6 于 Wed Jun 9 22:37:41 2004 生成<br>版权所有 (C) 2003,2004 王咏武</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -