| 80 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="66a4d41031e37618f1a9bb3c81814c11"></a><!-- doxytag: member="bdm::shared_ptr::shared_ptr" ref="66a4d41031e37618f1a9bb3c81814c11" args="()" --> |
| 81 | | </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#66a4d41031e37618f1a9bb3c81814c11">shared_ptr</a> ()</td></tr> |
| 82 | | |
| 83 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an empty <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> - one that doesn't point anywhere. <br></td></tr> |
| | 80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#66a4d41031e37618f1a9bb3c81814c11">shared_ptr</a> ()</td></tr> |
| | 81 | |
| | 82 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#66a4d41031e37618f1a9bb3c81814c11"></a><br></td></tr> |
| 107 | | bool </td><td class="memItemRight" valign="bottom"><b>unique</b> () const </td></tr> |
| 108 | | |
| 109 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8e52b8887a4408c52b5263a5717343f2"></a><!-- doxytag: member="bdm::shared_ptr::use_count" ref="8e52b8887a4408c52b5263a5717343f2" args="() const " --> |
| 110 | | long </td><td class="memItemRight" valign="bottom"><b>use_count</b> () const </td></tr> |
| 111 | | |
| 112 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6cac71bb600f9f7c6fbed9335fd22d37"></a><!-- doxytag: member="bdm::shared_ptr::operator bool" ref="6cac71bb600f9f7c6fbed9335fd22d37" args="() const " --> |
| 113 | | </td><td class="memItemRight" valign="bottom"><b>operator bool</b> () const </td></tr> |
| 114 | | |
| | 111 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#338dbc6aa9fd95175abdc2df3ae2c284">unique</a> () const </td></tr> |
| | 112 | |
| | 113 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <a class="el" href="classbdm_1_1shared__ptr.html#8e52b8887a4408c52b5263a5717343f2">use_count()</a> == 1. <br></td></tr> |
| | 114 | <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> |
| | 115 | |
| | 116 | <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> |
| | 117 | |
| | 118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Boolean cast. <a href="#6cac71bb600f9f7c6fbed9335fd22d37"></a><br></td></tr> |
| | 119 | <tr><td class="memTemplParams" nowrap colspan="2">template<typename U > </td></tr> |
| | 120 | <tr><td class="memTemplItemLeft" nowrap align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#b3cd369b00369ab92456aa0645e8d560">operator shared_ptr< const U ></a> () const </td></tr> |
| | 121 | |
| | 122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">const cast <a href="#b3cd369b00369ab92456aa0645e8d560"></a><br></td></tr> |
| 130 | | The standard template would naturally be preferable, _if_ it was included in the standard libraries of all supported compilers - but as of 2009, that's still a problem... <hr><h2>Constructor & Destructor Documentation</h2> |
| | 139 | The standard template would naturally be preferable, <b>if</b> it was included in the standard libraries of all supported compilers - but as of 2009, that's still a problem... <hr><h2>Constructor & Destructor Documentation</h2> |
| | 140 | <a class="anchor" name="66a4d41031e37618f1a9bb3c81814c11"></a><!-- doxytag: member="bdm::shared_ptr::shared_ptr" ref="66a4d41031e37618f1a9bb3c81814c11" args="()" --> |
| | 141 | <div class="memitem"> |
| | 142 | <div class="memproto"> |
| | 143 | <div class="memtemplate"> |
| | 144 | template<typename T> </div> |
| | 145 | <table class="memname"> |
| | 146 | <tr> |
| | 147 | <td class="memname"><a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a> </td> |
| | 148 | <td>(</td> |
| | 149 | <td class="paramname"> </td> |
| | 150 | <td> ) </td> |
| | 151 | <td><code> [inline]</code></td> |
| | 152 | </tr> |
| | 153 | </table> |
| | 154 | </div> |
| | 155 | <div class="memdoc"> |
| | 156 | |
| | 157 | <p> |
| | 158 | Default constructor. |
| | 159 | <p> |
| | 160 | Creates an empty <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> - one that doesn't point anywhere. |
| | 161 | </div> |
| | 162 | </div><p> |
| 196 | | If other is empty, constructs an empty <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>; otherwise, constructs a <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> that shares ownership with other. |
| | 230 | Generalized copy. |
| | 231 | <p> |
| | 232 | Allows initialization of shared pointer of a base type from raw pointer to a derived type.<p> |
| | 233 | If other is empty, constructs an empty <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>; otherwise, constructs a <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> that shares ownership with other. |
| | 234 | </div> |
| | 235 | </div><p> |
| | 236 | <a class="anchor" name="79374842e417d2f64e449e374be4cfc1"></a><!-- doxytag: member="bdm::shared_ptr::~shared_ptr" ref="79374842e417d2f64e449e374be4cfc1" args="()" --> |
| | 237 | <div class="memitem"> |
| | 238 | <div class="memproto"> |
| | 239 | <div class="memtemplate"> |
| | 240 | template<typename T> </div> |
| | 241 | <table class="memname"> |
| | 242 | <tr> |
| | 243 | <td class="memname"><a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::~<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a> </td> |
| | 244 | <td>(</td> |
| | 245 | <td class="paramname"> </td> |
| | 246 | <td> ) </td> |
| | 247 | <td><code> [inline]</code></td> |
| | 248 | </tr> |
| | 249 | </table> |
| | 250 | </div> |
| | 251 | <div class="memdoc"> |
| | 252 | |
| | 253 | <p> |
| | 254 | Destructor. |
| 239 | | Returns the stored pointer (which remains owned by this instance). |
| 240 | | <p>Referenced by <a class="el" href="bdmbase_8cpp-source.html#l00309">bdm::mepdf::from_setting()</a>, and <a class="el" href="bdmbase_8h-source.html#l00725">bdm::mepdf::mepdf()</a>.</p> |
| 241 | | |
| | 297 | Returns the stored pointer (which remains owned by this instance). For empty instances, this method returns NULL. |
| | 298 | <p>Referenced by <a class="el" href="bdmbase_8cpp-source.html#l00345">bdm::mepdf::from_setting()</a>, <a class="el" href="bdmbase_8h-source.html#l00719">bdm::mepdf::mepdf()</a>, and <a class="el" href="kalman_8h-source.html#l00120">bdm::Kalman< fsqmat >::posterior()</a>.</p> |
| | 299 | |
| | 300 | </div> |
| | 301 | </div><p> |
| | 302 | <a class="anchor" name="6cac71bb600f9f7c6fbed9335fd22d37"></a><!-- doxytag: member="bdm::shared_ptr::operator bool" ref="6cac71bb600f9f7c6fbed9335fd22d37" args="() const " --> |
| | 303 | <div class="memitem"> |
| | 304 | <div class="memproto"> |
| | 305 | <div class="memtemplate"> |
| | 306 | template<typename T> </div> |
| | 307 | <table class="memname"> |
| | 308 | <tr> |
| | 309 | <td class="memname"><a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::operator bool </td> |
| | 310 | <td>(</td> |
| | 311 | <td class="paramname"> </td> |
| | 312 | <td> ) </td> |
| | 313 | <td> const<code> [inline]</code></td> |
| | 314 | </tr> |
| | 315 | </table> |
| | 316 | </div> |
| | 317 | <div class="memdoc"> |
| | 318 | |
| | 319 | <p> |
| | 320 | Boolean cast. |
| | 321 | <p> |
| | 322 | This operator returns true if and only if the instance isn't empty. |
| | 323 | </div> |
| | 324 | </div><p> |
| | 325 | <a class="anchor" name="b3cd369b00369ab92456aa0645e8d560"></a><!-- doxytag: member="bdm::shared_ptr::operator shared_ptr< const U >" ref="b3cd369b00369ab92456aa0645e8d560" args="() const " --> |
| | 326 | <div class="memitem"> |
| | 327 | <div class="memproto"> |
| | 328 | <div class="memtemplate"> |
| | 329 | template<typename T> </div> |
| | 330 | <div class="memtemplate"> |
| | 331 | template<typename U > </div> |
| | 332 | <table class="memname"> |
| | 333 | <tr> |
| | 334 | <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> |
| | 335 | <td>(</td> |
| | 336 | <td class="paramname"> </td> |
| | 337 | <td> ) </td> |
| | 338 | <td> const<code> [inline]</code></td> |
| | 339 | </tr> |
| | 340 | </table> |
| | 341 | </div> |
| | 342 | <div class="memdoc"> |
| | 343 | |
| | 344 | <p> |
| | 345 | const cast |
| | 346 | <p> |
| | 347 | Shared pointer to T can be converted to shared pointer to const T, just like T * can be converted to T const *. |
| 325 | | Returns the stored pointer (which remains owned by this instance). This method may only be called when the stored pointer isn't NULL. |
| | 431 | Dereferences the stored pointer (which remains owned by this instance). This method may only be called when the stored pointer isn't NULL. |
| | 432 | </div> |
| | 433 | </div><p> |
| | 434 | <a class="anchor" name="8e52b8887a4408c52b5263a5717343f2"></a><!-- doxytag: member="bdm::shared_ptr::use_count" ref="8e52b8887a4408c52b5263a5717343f2" args="() const " --> |
| | 435 | <div class="memitem"> |
| | 436 | <div class="memproto"> |
| | 437 | <div class="memtemplate"> |
| | 438 | template<typename T> </div> |
| | 439 | <table class="memname"> |
| | 440 | <tr> |
| | 441 | <td class="memname">long <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::use_count </td> |
| | 442 | <td>(</td> |
| | 443 | <td class="paramname"> </td> |
| | 444 | <td> ) </td> |
| | 445 | <td> const<code> [inline]</code></td> |
| | 446 | </tr> |
| | 447 | </table> |
| | 448 | </div> |
| | 449 | <div class="memdoc"> |
| | 450 | |
| | 451 | <p> |
| | 452 | Returns the number 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> instances (including this instance) that share ownership with this instance. For empty instances, this method returns 0. |