📄 smartptr_8h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>smartptr.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>smartptr.h File Reference</h1><code>#include <ptlib.h></code><br><code>#include <<a class="el" href="object_8h-source.html">ptlib/object.h</a>></code><br><p><a href="smartptr_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Compounds</h2></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPSmartObject.html">PSmartObject</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPSmartPointer.html">PSmartPointer</a></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="smartptr_8h.html#a0">PSMART_POINTER_INFO</a>(cls, par, type)</td></tr></table><hr><h2>Define Documentation</h2><a name="a0" doxytag="smartptr.h::PSMART_POINTER_INFO"></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"> #define PSMART_POINTER_INFO</td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">cls, <tr> <td></td> <td></td> <td class="md" nowrap>par, <tr> <td></td> <td></td> <td class="md" nowrap>type </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><b>Value:</b><div class="fragment"><pre><a class="code" href="object_8h.html#a27">PCLASSINFO</a>(cls, par) \ <span class="keyword">public</span>: \ type * operator->() <span class="keyword">const</span> \ { <span class="keywordflow">return</span> (type *)<a class="code" href="object_8h.html#a8">PAssertNULL</a>(object); } \ type & operator*() <span class="keyword">const</span> \ { <span class="keywordflow">return</span> *(type *)<a class="code" href="object_8h.html#a8">PAssertNULL</a>(object); } \ operator type*() <span class="keyword">const</span> \ { <span class="keywordflow">return</span> (type *)object; }</pre></div>This macro is used to declare a smart pointer class members. The class cls# is the smart pointer, descended from the par# class, to the type# class.<p>The macro declares in the class the following functions: \begin{verbatim} <a class="el" href="object_8h.html#a27">PCLASSINFO(cls, par)</a>; Standard class info.<p>type * operator->() const; Access to the members of the smart object in the smart pointer.<p>type & operator *() const; Access to the value of the smart object in the smart pointer. \end{verbatim} </td> </tr></table><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:12 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 + -