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

📄 classpsafeptr.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<p>Return the physical pointer to the object.     </td>  </tr></table><a name="z335_4" doxytag="PSafePtr::operator++"></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" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> T* PSafePtr&lt; T &gt;::operator++ </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Pre-increment the pointer. This requires that the pointer has been created with a <a class="el" href="classPSafeCollection.html">PSafeCollection</a> object so that it can enumerate the collection.     </td>  </tr></table><a name="z335_3" doxytag="PSafePtr::operator++"></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" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> T* PSafePtr&lt; T &gt;::operator++ </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Post-increment the pointer. This requires that the pointer has been created with a <a class="el" href="classPSafeCollection.html">PSafeCollection</a> object so that it can enumerate the collection.     </td>  </tr></table><a name="z335_6" doxytag="PSafePtr::operator--"></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" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> T* PSafePtr&lt; T &gt;::operator-- </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Pre-decrement the pointer. This requires that the pointer has been created with a <a class="el" href="classPSafeCollection.html">PSafeCollection</a> object so that it can enumerate the collection.     </td>  </tr></table><a name="z335_5" doxytag="PSafePtr::operator--"></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" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> T* PSafePtr&lt; T &gt;::operator-- </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Post-decrement the pointer. This requires that the pointer has been created with a <a class="el" href="classPSafeCollection.html">PSafeCollection</a> object so that it can enumerate the collection.     </td>  </tr></table><a name="z335_2" doxytag="PSafePtr::operator->"></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" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> T* PSafePtr&lt; T &gt;::operator-&gt; </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&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>Allow access to the physical object the pointer is pointing to.     </td>  </tr></table><a name="z333_7" doxytag="PSafePtr::operator="></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" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> PSafePtr&amp; PSafePtr&lt; T &gt;::operator= </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>idx</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set the new pointer to a collection index. This will set the pointer to the new object to the index entry in the colelction that the pointer was created with. The old object pointed to will be unlocked and dereferenced and the new object referenced and set to the same locking mode as the previous pointer value.<p>If the idx'th object is not in the collection, then the safe pointer is set to NULL.     </td>  </tr></table><a name="z333_6" doxytag="PSafePtr::operator="></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" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> PSafePtr&amp; PSafePtr&lt; T &gt;::operator= </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">T *&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> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set the new pointer to a <a class="el" href="classPSafeObject.html">PSafeObject</a>. This will set the pointer to the new object. The old object pointed to will be unlocked and dereferenced and the new object referenced.<p>If the safe pointer has an associated collection and the new object is in that collection, then the object is set to the same locking mode as the previous pointer value. This, in effect, jumps the enumeration of a collection to the specifed object.<p>If the safe pointer has no associated collection or the object is not in the associated collection, then the object is always only referenced and there is no read only or read/write lock done. In addition any associated collection is removed so this becomes a non enumerating safe pointer.     </td>  </tr></table><a name="z333_5" doxytag="PSafePtr::operator="></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" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> PSafePtr&amp; PSafePtr&lt; T &gt;::operator= </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPSafeCollection.html">PSafeCollection</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>safeCollection</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Start an enumerated <a class="el" href="classPSafeObject.html">PSafeObject</a>. This will create a read/write locked reference to teh first element in the collection.     </td>  </tr></table><a name="z333_4" doxytag="PSafePtr::operator="></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" colspan="4">template&lt;class T&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> PSafePtr&amp; PSafePtr&lt; T &gt;::operator= </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const PSafePtr&lt; T &gt; &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>ptr</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Copy the pointer to the <a class="el" href="classPSafeObject.html">PSafeObject</a>. This will create a copy of the pointer with the same locking mode and lock on the <a class="el" href="classPSafeObject.html">PSafeObject</a>. It will also increment the reference count on the <a class="el" href="classPSafeObject.html">PSafeObject</a> as well.     </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="safecoll_8h-source.html">safecoll.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:18 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 + -