Changeset 590 for library/doc/html/classbdm_1_1object__ptr.html
- Timestamp:
- 08/29/09 20:54:10 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/doc/html/classbdm_1_1object__ptr.html
r538 r590 68 68 </div> 69 69 <div class="contents"> 70 <h1>bdm::object_ptr< T > Class Template Reference</h1><!-- doxytag: class="bdm::object_ptr" --><!-- doxytag: inherits="shared_ptr< T >" -->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< T > Class Template Reference</h1><!-- doxytag: class="bdm::object_ptr" --><!-- doxytag: inherits="shared_ptr< T >" -->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. 71 71 <a href="#_details">More...</a> 72 72 <p> … … 87 87 88 88 <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< T > &other)" --> 89 <a class="el" href="classbdm_1_1object__ptr.html">object_ptr</a>< T > & </td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classbdm_1_1object__ptr.html">object_ptr</a>< T > &other)</td></tr> 90 89 <a class="el" href="classbdm_1_1object__ptr.html">object_ptr</a>< T > & </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>< T > &other)</td></tr> 90 91 <tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <br></td></tr> 91 92 <tr><td class="memItemLeft" nowrap align="right" valign="top">T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#37ebcfb6750dd7b5630f1d2354c07a96">get</a> ()</td></tr> 92 93 … … 102 103 103 104 <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 </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 </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 </td><td class="memItemRight" valign="bottom"><b>operator bool</b> () const</td></tr> 111 105 bool </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"> </td><td class="mdescRight">Returns use_count() == 1. <br></td></tr> 108 <tr><td class="memItemLeft" nowrap align="right" valign="top">long </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"> </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"> </td><td class="mdescRight">Boolean cast. <a href="#6cac71bb600f9f7c6fbed9335fd22d37"></a><br></td></tr> 113 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#b3cd369b00369ab92456aa0645e8d560">operator shared_ptr< const U ></a> () const</td></tr> 114 115 <tr><td class="mdescLeft"> </td><td class="mdescRight">const cast <a href="#b3cd369b00369ab92456aa0645e8d560"></a><br></td></tr> 112 116 <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 &other)" --> 113 void </td><td class="memItemRight" valign="bottom"><b>swap</b> (<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a> &other)</td></tr> 114 117 void </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> &other)</td></tr> 118 119 <tr><td class="mdescLeft"> </td><td class="mdescRight">Efficient swap for shared_ptr. <br></td></tr> 115 120 </table> 116 121 <hr><a name="_details"></a><h2>Detailed Description</h2> … … 118 123 class bdm::object_ptr< T ></h3> 119 124 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.125 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. 121 126 <p> 122 127 T must have a default constructor.<p> … … 172 177 </dl> 173 178 179 <p>References <a class="el" href="bdmerror_8h-source.html#l00047">bdm_assert_debug</a>.</p> 180 174 181 </div> 175 182 </div><p> … … 194 201 <p> 195 202 Constructs 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 196 205 </div> 197 206 </div><p> … … 213 222 214 223 <p> 215 Returns the stored pointer (which remains owned by this instance). 224 Returns the stored pointer (which remains owned by this instance). For empty instances, this method returns NULL. 216 225 </div> 217 226 </div><p> … … 232 241 233 242 <p> 234 Returns the stored pointer (which remains owned by this instance). 243 Returns 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>< T >::operator bool </td> 252 <td>(</td> 253 <td class="paramname"> </td> 254 <td> ) </td> 255 <td> const<code> [inline, inherited]</code></td> 256 </tr> 257 </table> 258 </div> 259 <div class="memdoc"> 260 261 <p> 262 Boolean cast. 263 <p> 264 This 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< const U >" 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>< T >::operator <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< const U > </td> 273 <td>(</td> 274 <td class="paramname"> </td> 275 <td> ) </td> 276 <td> const<code> [inline, inherited]</code></td> 277 </tr> 278 </table> 279 </div> 280 <div class="memdoc"> 281 282 <p> 283 const cast 284 <p> 285 Shared pointer to T can be converted to shared pointer to const T, just like T * can be converted to T const *. 235 286 </div> 236 287 </div><p> … … 308 359 309 360 <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. 361 Dereferences 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>< T >::use_count </td> 370 <td>(</td> 371 <td class="paramname"> </td> 372 <td> ) </td> 373 <td> const<code> [inline, inherited]</code></td> 374 </tr> 375 </table> 376 </div> 377 <div class="memdoc"> 378 379 <p> 380 Returns the number of shared_ptr instances (including this instance) that share ownership with this instance. For empty instances, this method returns 0. 311 381 </div> 312 382 </div><p> … … 314 384 <li><a class="el" href="shared__ptr_8h-source.html">shared_ptr.h</a></ul> 315 385 </div> 316 <hr size="1"><address style="text-align: right;"><small>Generated on S un Aug 16 17:58:192009 for mixpp by 386 <hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 29 20:49:46 2009 for mixpp by 317 387 <a href="http://www.doxygen.org/index.html"> 318 388 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>