Show
Ignore:
Timestamp:
08/29/09 20:54:10 (15 years ago)
Author:
smidl
Message:

doc

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/doc/html/classbdm_1_1object__ptr.html

    r538 r590  
    6868</div> 
    6969<div class="contents"> 
    70 <h1>bdm::object_ptr&lt; T &gt; Class Template Reference</h1><!-- doxytag: class="bdm::object_ptr" --><!-- doxytag: inherits="shared_ptr&lt; T &gt;" -->A wrapper of <a class="el" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1:shared_ptr spec.">shared_ptr</a> which is never empty.   
     70<h1>bdm::object_ptr&lt; T &gt; Class Template Reference</h1><!-- doxytag: class="bdm::object_ptr" --><!-- doxytag: inherits="shared_ptr&lt; T &gt;" -->A wrapper of <a class="el" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr</a> which is never empty.   
    7171<a href="#_details">More...</a> 
    7272<p> 
     
    8787 
    8888<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9c80da05b7b3dfc59333ca9bf6f62970"></a><!-- doxytag: member="bdm::object_ptr::operator=" ref="9c80da05b7b3dfc59333ca9bf6f62970" args="(const object_ptr&lt; T &gt; &amp;other)" --> 
    89 <a class="el" href="classbdm_1_1object__ptr.html">object_ptr</a>&lt; T &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classbdm_1_1object__ptr.html">object_ptr</a>&lt; T &gt; &amp;other)</td></tr> 
    90  
     89<a class="el" href="classbdm_1_1object__ptr.html">object_ptr</a>&lt; T &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1object__ptr.html#9c80da05b7b3dfc59333ca9bf6f62970">operator=</a> (const <a class="el" href="classbdm_1_1object__ptr.html">object_ptr</a>&lt; T &gt; &amp;other)</td></tr> 
     90 
     91<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator. <br></td></tr> 
    9192<tr><td class="memItemLeft" nowrap align="right" valign="top">T *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#37ebcfb6750dd7b5630f1d2354c07a96">get</a> ()</td></tr> 
    9293 
     
    102103 
    103104<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="338dbc6aa9fd95175abdc2df3ae2c284"></a><!-- doxytag: member="bdm::object_ptr::unique" ref="338dbc6aa9fd95175abdc2df3ae2c284" args="() const" --> 
    104 bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>unique</b> () const</td></tr> 
    105  
    106 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8e52b8887a4408c52b5263a5717343f2"></a><!-- doxytag: member="bdm::object_ptr::use_count" ref="8e52b8887a4408c52b5263a5717343f2" args="() const" --> 
    107 long&nbsp;</td><td class="memItemRight" valign="bottom"><b>use_count</b> () const</td></tr> 
    108  
    109 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6cac71bb600f9f7c6fbed9335fd22d37"></a><!-- doxytag: member="bdm::object_ptr::operator bool" ref="6cac71bb600f9f7c6fbed9335fd22d37" args="() const" --> 
    110 &nbsp;</td><td class="memItemRight" valign="bottom"><b>operator bool</b> () const</td></tr> 
    111  
     105bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#338dbc6aa9fd95175abdc2df3ae2c284">unique</a> () const</td></tr> 
     106 
     107<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns use_count() == 1. <br></td></tr> 
     108<tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#8e52b8887a4408c52b5263a5717343f2">use_count</a> () const</td></tr> 
     109 
     110<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#6cac71bb600f9f7c6fbed9335fd22d37">operator bool</a> () const</td></tr> 
     111 
     112<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Boolean cast.  <a href="#6cac71bb600f9f7c6fbed9335fd22d37"></a><br></td></tr> 
     113<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#b3cd369b00369ab92456aa0645e8d560">operator shared_ptr&lt; const U &gt;</a> () const</td></tr> 
     114 
     115<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">const cast  <a href="#b3cd369b00369ab92456aa0645e8d560"></a><br></td></tr> 
    112116<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fca7fd588f8de50e7590357305b00984"></a><!-- doxytag: member="bdm::object_ptr::swap" ref="fca7fd588f8de50e7590357305b00984" args="(shared_ptr &amp;other)" --> 
    113 void&nbsp;</td><td class="memItemRight" valign="bottom"><b>swap</b> (<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a> &amp;other)</td></tr> 
    114  
     117void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#fca7fd588f8de50e7590357305b00984">swap</a> (<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a> &amp;other)</td></tr> 
     118 
     119<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Efficient swap for shared_ptr. <br></td></tr> 
    115120</table> 
    116121<hr><a name="_details"></a><h2>Detailed Description</h2> 
     
    118123 class bdm::object_ptr&lt; T &gt;</h3> 
    119124 
    120 A wrapper of <a class="el" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1:shared_ptr spec.">shared_ptr</a> which is never empty.  
     125A wrapper of <a class="el" href="classbdm_1_1shared__ptr.html" title="A naive implementation of roughly a subset of the std::tr1::shared_ptr spec.">shared_ptr</a> which is never empty.  
    121126<p> 
    122127T must have a default constructor.<p> 
     
    172177</dl> 
    173178 
     179<p>References <a class="el" href="bdmerror_8h-source.html#l00047">bdm_assert_debug</a>.</p> 
     180 
    174181</div> 
    175182</div><p> 
     
    194201<p> 
    195202Constructs an <a class="el" href="classbdm_1_1object__ptr.html" title="A wrapper of shared_ptr which is never empty.">object_ptr</a> that owns the pointer p. p must have been alllocated by new!  
     203<p>References <a class="el" href="bdmerror_8h-source.html#l00047">bdm_assert_debug</a>.</p> 
     204 
    196205</div> 
    197206</div><p> 
     
    213222 
    214223<p> 
    215 Returns the stored pointer (which remains owned by this instance).  
     224Returns the stored pointer (which remains owned by this instance). For empty instances, this method returns NULL.  
    216225</div> 
    217226</div><p> 
     
    232241 
    233242<p> 
    234 Returns the stored pointer (which remains owned by this instance).  
     243Returns the stored pointer (which remains owned by this instance). For empty instances, this method returns NULL.  
     244</div> 
     245</div><p> 
     246<a class="anchor" name="6cac71bb600f9f7c6fbed9335fd22d37"></a><!-- doxytag: member="bdm::object_ptr::operator bool" ref="6cac71bb600f9f7c6fbed9335fd22d37" args="() const" --> 
     247<div class="memitem"> 
     248<div class="memproto"> 
     249      <table class="memname"> 
     250        <tr> 
     251          <td class="memname"><a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>&lt; T  &gt;::operator bool           </td> 
     252          <td>(</td> 
     253          <td class="paramname">          </td> 
     254          <td>&nbsp;)&nbsp;</td> 
     255          <td> const<code> [inline, inherited]</code></td> 
     256        </tr> 
     257      </table> 
     258</div> 
     259<div class="memdoc"> 
     260 
     261<p> 
     262Boolean cast.  
     263<p> 
     264This operator returns true if and only if the instance isn't empty.  
     265</div> 
     266</div><p> 
     267<a class="anchor" name="b3cd369b00369ab92456aa0645e8d560"></a><!-- doxytag: member="bdm::object_ptr::operator shared_ptr&lt; const U &gt;" ref="b3cd369b00369ab92456aa0645e8d560" args="() const" --> 
     268<div class="memitem"> 
     269<div class="memproto"> 
     270      <table class="memname"> 
     271        <tr> 
     272          <td class="memname"><a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>&lt; T  &gt;::operator <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; const U &gt;           </td> 
     273          <td>(</td> 
     274          <td class="paramname">          </td> 
     275          <td>&nbsp;)&nbsp;</td> 
     276          <td> const<code> [inline, inherited]</code></td> 
     277        </tr> 
     278      </table> 
     279</div> 
     280<div class="memdoc"> 
     281 
     282<p> 
     283const cast  
     284<p> 
     285Shared pointer to T can be converted to shared pointer to const T, just like T * can be converted to T const *.  
    235286</div> 
    236287</div><p> 
     
    308359 
    309360<p> 
    310 Returns the stored pointer (which remains owned by this instance). This method may only be called when the stored pointer isn't NULL.  
     361Dereferences the stored pointer (which remains owned by this instance). This method may only be called when the stored pointer isn't NULL.  
     362</div> 
     363</div><p> 
     364<a class="anchor" name="8e52b8887a4408c52b5263a5717343f2"></a><!-- doxytag: member="bdm::object_ptr::use_count" ref="8e52b8887a4408c52b5263a5717343f2" args="() const" --> 
     365<div class="memitem"> 
     366<div class="memproto"> 
     367      <table class="memname"> 
     368        <tr> 
     369          <td class="memname">long <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>&lt; T  &gt;::use_count           </td> 
     370          <td>(</td> 
     371          <td class="paramname">          </td> 
     372          <td>&nbsp;)&nbsp;</td> 
     373          <td> const<code> [inline, inherited]</code></td> 
     374        </tr> 
     375      </table> 
     376</div> 
     377<div class="memdoc"> 
     378 
     379<p> 
     380Returns the number of shared_ptr instances (including this instance) that share ownership with this instance. For empty instances, this method returns 0.  
    311381</div> 
    312382</div><p> 
     
    314384<li><a class="el" href="shared__ptr_8h-source.html">shared_ptr.h</a></ul> 
    315385</div> 
    316 <hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 16 17:58:19 2009 for mixpp by&nbsp; 
     386<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 29 20:49:46 2009 for mixpp by&nbsp; 
    317387<a href="http://www.doxygen.org/index.html"> 
    318388<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>