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

📄 classpabstractset.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
          <td class="md" nowrap valign="top"> virtual PINDEX PAbstractSet::Insert </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPObject.html">PObject</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>before</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classPObject.html">PObject</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>obj</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Add a new object to the collection. If the objects value is already in the set then the object is {\bf not} included. If the AllowDeleteObjects option is set then the obj# parameter is also deleted.<p>The object is always placed in the an ordinal position dependent on its hash function. It is not placed at the specified position. The before# parameter is ignored.<p><dl compact><dt><b>Returns: </b></dt><dd> hash function value of the newly added object. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>obj</em>&nbsp;</td><td>Object value to insert before. New object to place into the collection. </td></tr></table></dl><p>Implements <a class="el" href="classPCollection.html#z75_1">PCollection</a>.    </td>  </tr></table><a name="z97_2" doxytag="PAbstractSet::InsertAt"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual PINDEX PAbstractSet::InsertAt </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">PINDEX&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classPObject.html">PObject</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>obj</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Add a new object to the collection. If the objects value is already in the set then the object is {\bf not} included. If the AllowDeleteObjects option is set then the obj# parameter is also deleted.<p>The object is always placed in the an ordinal position dependent on its hash function. It is not placed at the specified position. The index# parameter is ignored.<p><dl compact><dt><b>Returns: </b></dt><dd> hash function value of the newly added object. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>obj</em>&nbsp;</td><td>Index position in collection to place the object. New object to place into the collection. </td></tr></table></dl><p>Implements <a class="el" href="classPCollection.html#z75_2">PCollection</a>.    </td>  </tr></table><a name="z97_3" doxytag="PAbstractSet::Remove"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual BOOL PAbstractSet::Remove </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPObject.html">PObject</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>obj</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Remove the object from the collection. If the AllowDeleteObjects option is set then the object is also deleted.<p>Note that the comparison for searching for the object in collection is made by pointer, not by value. Thus the parameter must point to the same instance of the object that is in the collection.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the object was in the collection. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>obj</em>&nbsp;</td><td>Existing object to remove from the collection. </td></tr></table></dl><p>Implements <a class="el" href="classPCollection.html#z75_3">PCollection</a>.    </td>  </tr></table><a name="z97_4" doxytag="PAbstractSet::RemoveAt"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual <a class="el" href="classPObject.html">PObject</a>* PAbstractSet::RemoveAt </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">PINDEX&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>index</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Remove an object at the specified index. If the <a class="el" href="classPCollection.html#z75_10">AllowDeleteObjects</a># option is set then the object is also deleted.<p><dl compact><dt><b>Returns: </b></dt><dd> pointer to the object being removed, or NULL if it was deleted. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>index</em>&nbsp;</td><td>Index position in collection to place the object. </td></tr></table></dl><p>Implements <a class="el" href="classPCollection.html#z75_4">PCollection</a>.    </td>  </tr></table><a name="z97_6" doxytag="PAbstractSet::SetAt"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual BOOL PAbstractSet::SetAt </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">PINDEX&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>index</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classPObject.html">PObject</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>val</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Add a new object to the collection. If the objects value is already in the set then the object is {\bf not} included. If the AllowDeleteObjects option is set then the obj# parameter is also deleted.<p>The object is always placed in the an ordinal position dependent on its hash function. It is not placed at the specified position. The index# parameter is ignored.<p><dl compact><dt><b>Returns: </b></dt><dd> TRUE if the object was successfully added. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>val</em>&nbsp;</td><td>Index position in collection to set. New value to place into the collection. </td></tr></table></dl><p>Implements <a class="el" href="classPCollection.html#z75_6">PCollection</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="dict_8h-source.html">dict.h</a><li><a class="el" href="contain_8inl.html">contain.inl</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:13 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

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