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 | | <a href="#_details">More...</a> |
72 | | <p> |
73 | | <code>#include <<a class="el" href="shared__ptr_8h-source.html">shared_ptr.h</a>></code> |
74 | | <p> |
75 | | |
76 | | <p> |
77 | | <a href="classbdm_1_1object__ptr-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
78 | | <tr><td></td></tr> |
79 | | <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
80 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1object__ptr.html#9f1016ff2bbfa497d1cc0a4497c1fba4">object_ptr</a> ()</td></tr> |
81 | | |
82 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#9f1016ff2bbfa497d1cc0a4497c1fba4"></a><br></td></tr> |
83 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1object__ptr.html#dcb20017177c98274c16087b2c0067dc">object_ptr</a> (const <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< T > &b)</td></tr> |
84 | | |
85 | | <tr><td class="mdescLeft"> </td><td class="mdescRight">Upcast from <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr<T></a> to object_ptr<T>. <a href="#dcb20017177c98274c16087b2c0067dc"></a><br></td></tr> |
86 | | <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1object__ptr.html#a9eb00600d8640711eadeed98c7892e9">object_ptr</a> (T *p)</td></tr> |
87 | | |
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"><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> |
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> |
93 | | |
94 | | <tr><td class="memItemLeft" nowrap align="right" valign="top">const T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#fff45e4841b2921cd42ce0691f8c1196">get</a> () const</td></tr> |
95 | | |
96 | | <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#bcaae812868eacbad050beda465d2327">operator-></a> ()</td></tr> |
97 | | |
98 | | <tr><td class="memItemLeft" nowrap align="right" valign="top">const T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#d89ec7ceb318241d833c7d278444396d">operator-></a> () const</td></tr> |
99 | | |
100 | | <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#de38de837267becf5eed2839fea42c45">operator*</a> ()</td></tr> |
101 | | |
102 | | <tr><td class="memItemLeft" nowrap align="right" valign="top">const T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#de000a72fe73804aa26962432f264800">operator*</a> () const</td></tr> |
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" --> |
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> |
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)" --> |
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> |
| 73 | <h1>bdm::object_ptr< T > Class Template Reference</h1><!-- doxytag: class="bdm::object_ptr" --><!-- doxytag: inherits="bdm::shared_ptr" --> |
| 74 | <p>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. |
| 75 | <a href="#_details">More...</a></p> |
| 76 | |
| 77 | <p><code>#include <<a class="el" href="shared__ptr_8h_source.html">shared_ptr.h</a>></code></p> |
| 78 | |
| 79 | <p><a href="classbdm_1_1object__ptr-members.html">List of all members.</a></p> |
| 80 | <table border="0" cellpadding="0" cellspacing="0"> |
| 81 | <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> |
| 82 | <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1object__ptr.html#a9f1016ff2bbfa497d1cc0a4497c1fba4">object_ptr</a> ()</td></tr> |
| 83 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#a9f1016ff2bbfa497d1cc0a4497c1fba4"></a><br/></td></tr> |
| 84 | <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1object__ptr.html#adcb20017177c98274c16087b2c0067dc">object_ptr</a> (const <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>< T > &b)</td></tr> |
| 85 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Upcast from shared_ptr<T> to object_ptr<T>. <a href="#adcb20017177c98274c16087b2c0067dc"></a><br/></td></tr> |
| 86 | <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1object__ptr.html#aa9eb00600d8640711eadeed98c7892e9">object_ptr</a> (T *p)</td></tr> |
| 87 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9c80da05b7b3dfc59333ca9bf6f62970"></a><!-- doxytag: member="bdm::object_ptr::operator=" ref="a9c80da05b7b3dfc59333ca9bf6f62970" args="(const object_ptr< T > &other)" --> |
| 88 | <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#a9c80da05b7b3dfc59333ca9bf6f62970">operator=</a> (const <a class="el" href="classbdm_1_1object__ptr.html">object_ptr</a>< T > &other)</td></tr> |
| 89 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <br/></td></tr> |
| 90 | <tr><td class="memItemLeft" align="right" valign="top">T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#a37ebcfb6750dd7b5630f1d2354c07a96">get</a> ()</td></tr> |
| 91 | <tr><td class="memItemLeft" align="right" valign="top">const T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#afff45e4841b2921cd42ce0691f8c1196">get</a> () const </td></tr> |
| 92 | <tr><td class="memItemLeft" align="right" valign="top">T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#abcaae812868eacbad050beda465d2327">operator-></a> ()</td></tr> |
| 93 | <tr><td class="memItemLeft" align="right" valign="top">const T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#ad89ec7ceb318241d833c7d278444396d">operator-></a> () const </td></tr> |
| 94 | <tr><td class="memItemLeft" align="right" valign="top">T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#ade38de837267becf5eed2839fea42c45">operator*</a> ()</td></tr> |
| 95 | <tr><td class="memItemLeft" align="right" valign="top">const T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#ade000a72fe73804aa26962432f264800">operator*</a> () const </td></tr> |
| 96 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a338dbc6aa9fd95175abdc2df3ae2c284"></a><!-- doxytag: member="bdm::object_ptr::unique" ref="a338dbc6aa9fd95175abdc2df3ae2c284" args="() const " --> |
| 97 | bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#a338dbc6aa9fd95175abdc2df3ae2c284">unique</a> () const </td></tr> |
| 98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <a class="el" href="classbdm_1_1shared__ptr.html#a8e52b8887a4408c52b5263a5717343f2">use_count()</a> == 1. <br/></td></tr> |
| 99 | <tr><td class="memItemLeft" align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#a8e52b8887a4408c52b5263a5717343f2">use_count</a> () const </td></tr> |
| 100 | <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#a6cac71bb600f9f7c6fbed9335fd22d37">operator bool</a> () const </td></tr> |
| 101 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Boolean cast. <a href="#a6cac71bb600f9f7c6fbed9335fd22d37"></a><br/></td></tr> |
| 102 | <tr><td class="memTemplParams" colspan="2">template<typename U > </td></tr> |
| 103 | <tr><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#ab3cd369b00369ab92456aa0645e8d560">operator shared_ptr< const U ></a> () const </td></tr> |
| 104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">const cast <a href="#ab3cd369b00369ab92456aa0645e8d560"></a><br/></td></tr> |
| 105 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afca7fd588f8de50e7590357305b00984"></a><!-- doxytag: member="bdm::object_ptr::swap" ref="afca7fd588f8de50e7590357305b00984" args="(shared_ptr &other)" --> |
| 106 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1shared__ptr.html#afca7fd588f8de50e7590357305b00984">swap</a> (<a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a> &other)</td></tr> |
| 107 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Efficient swap for <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>. <br/></td></tr> |
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. |
126 | | <p> |
127 | | T must have a default constructor.<p> |
128 | | Note that shared_ptr's destructor isn't virtual - don't call delete on pointers to instances of this class. <hr><h2>Constructor & Destructor Documentation</h2> |
129 | | <a class="anchor" name="9f1016ff2bbfa497d1cc0a4497c1fba4"></a><!-- doxytag: member="bdm::object_ptr::object_ptr" ref="9f1016ff2bbfa497d1cc0a4497c1fba4" args="()" --> |
130 | | <div class="memitem"> |
131 | | <div class="memproto"> |
132 | | <div class="memtemplate"> |
133 | | template<typename T> </div> |
134 | | <table class="memname"> |
135 | | <tr> |
136 | | <td class="memname"><a class="el" href="classbdm_1_1object__ptr.html">bdm::object_ptr</a>< T >::<a class="el" href="classbdm_1_1object__ptr.html">object_ptr</a> </td> |
137 | | <td>(</td> |
138 | | <td class="paramname"> </td> |
| 113 | <p>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. </p> |
| 114 | <p>T must have a default constructor.</p> |
| 115 | <p>Note that shared_ptr's destructor isn't virtual - don't call delete on pointers to instances of this class. </p> |
| 116 | <hr/><h2>Constructor & Destructor Documentation</h2> |
| 117 | <a class="anchor" id="a9f1016ff2bbfa497d1cc0a4497c1fba4"></a><!-- doxytag: member="bdm::object_ptr::object_ptr" ref="a9f1016ff2bbfa497d1cc0a4497c1fba4" args="()" --> |
| 118 | <div class="memitem"> |
| 119 | <div class="memproto"> |
| 120 | <div class="memtemplate"> |
| 121 | template<typename T> </div> |
| 122 | <table class="memname"> |
| 123 | <tr> |
| 124 | <td class="memname"><a class="el" href="classbdm_1_1object__ptr.html">bdm::object_ptr</a>< T >::<a class="el" href="classbdm_1_1object__ptr.html">object_ptr</a> </td> |
| 125 | <td>(</td> |
| 126 | <td class="paramname"></td> |
200 | | |
201 | | <p> |
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 | | |
205 | | </div> |
206 | | </div><p> |
207 | | <hr><h2>Member Function Documentation</h2> |
208 | | <a class="anchor" name="fff45e4841b2921cd42ce0691f8c1196"></a><!-- doxytag: member="bdm::object_ptr::get" ref="fff45e4841b2921cd42ce0691f8c1196" args="() const" --> |
209 | | <div class="memitem"> |
210 | | <div class="memproto"> |
211 | | <table class="memname"> |
212 | | <tr> |
213 | | <td class="memname">const T * <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::get </td> |
214 | | <td>(</td> |
215 | | <td class="paramname"> </td> |
216 | | <td> ) </td> |
217 | | <td> const<code> [inline, inherited]</code></td> |
218 | | </tr> |
219 | | </table> |
220 | | </div> |
221 | | <div class="memdoc"> |
222 | | |
223 | | <p> |
224 | | Returns the stored pointer (which remains owned by this instance). For empty instances, this method returns NULL. |
225 | | </div> |
226 | | </div><p> |
227 | | <a class="anchor" name="37ebcfb6750dd7b5630f1d2354c07a96"></a><!-- doxytag: member="bdm::object_ptr::get" ref="37ebcfb6750dd7b5630f1d2354c07a96" args="()" --> |
228 | | <div class="memitem"> |
229 | | <div class="memproto"> |
230 | | <table class="memname"> |
231 | | <tr> |
232 | | <td class="memname">T * <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::get </td> |
233 | | <td>(</td> |
234 | | <td class="paramname"> </td> |
| 186 | <p>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! </p> |
| 187 | |
| 188 | <p>References <a class="el" href="bdmerror_8h_source.html#l00047">bdm_assert_debug</a>.</p> |
| 189 | |
| 190 | </div> |
| 191 | </div> |
| 192 | <hr/><h2>Member Function Documentation</h2> |
| 193 | <a class="anchor" id="afff45e4841b2921cd42ce0691f8c1196"></a><!-- doxytag: member="bdm::object_ptr::get" ref="afff45e4841b2921cd42ce0691f8c1196" args="() const " --> |
| 194 | <div class="memitem"> |
| 195 | <div class="memproto"> |
| 196 | <div class="memtemplate"> |
| 197 | template<typename T> </div> |
| 198 | <table class="memname"> |
| 199 | <tr> |
| 200 | <td class="memname">const T* <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::get </td> |
| 201 | <td>(</td> |
| 202 | <td class="paramname"></td> |
| 203 | <td> ) </td> |
| 204 | <td> const<code> [inline, inherited]</code></td> |
| 205 | </tr> |
| 206 | </table> |
| 207 | </div> |
| 208 | <div class="memdoc"> |
| 209 | <p>Returns the stored pointer (which remains owned by this instance). For empty instances, this method returns NULL. </p> |
| 210 | |
| 211 | </div> |
| 212 | </div> |
| 213 | <a class="anchor" id="a37ebcfb6750dd7b5630f1d2354c07a96"></a><!-- doxytag: member="bdm::object_ptr::get" ref="a37ebcfb6750dd7b5630f1d2354c07a96" args="()" --> |
| 214 | <div class="memitem"> |
| 215 | <div class="memproto"> |
| 216 | <div class="memtemplate"> |
| 217 | template<typename T> </div> |
| 218 | <table class="memname"> |
| 219 | <tr> |
| 220 | <td class="memname">T* <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::get </td> |
| 221 | <td>(</td> |
| 222 | <td class="paramname"></td> |
241 | | |
242 | | <p> |
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 *. |
286 | | </div> |
287 | | </div><p> |
288 | | <a class="anchor" name="de000a72fe73804aa26962432f264800"></a><!-- doxytag: member="bdm::object_ptr::operator*" ref="de000a72fe73804aa26962432f264800" args="() const" --> |
289 | | <div class="memitem"> |
290 | | <div class="memproto"> |
291 | | <table class="memname"> |
292 | | <tr> |
293 | | <td class="memname">const T & <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::operator* </td> |
294 | | <td>(</td> |
295 | | <td class="paramname"> </td> |
296 | | <td> ) </td> |
297 | | <td> const<code> [inline, inherited]</code></td> |
298 | | </tr> |
299 | | </table> |
300 | | </div> |
301 | | <div class="memdoc"> |
302 | | |
303 | | <p> |
304 | | Returns a reference to the object pointed to by the stored pointer. This method may only be called when the stored pointer isn't NULL. |
305 | | </div> |
306 | | </div><p> |
307 | | <a class="anchor" name="de38de837267becf5eed2839fea42c45"></a><!-- doxytag: member="bdm::object_ptr::operator*" ref="de38de837267becf5eed2839fea42c45" args="()" --> |
308 | | <div class="memitem"> |
309 | | <div class="memproto"> |
310 | | <table class="memname"> |
311 | | <tr> |
312 | | <td class="memname">T & <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::operator* </td> |
313 | | <td>(</td> |
314 | | <td class="paramname"> </td> |
| 229 | <p>Returns the stored pointer (which remains owned by this instance). For empty instances, this method returns NULL. </p> |
| 230 | |
| 231 | <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> |
| 232 | |
| 233 | </div> |
| 234 | </div> |
| 235 | <a class="anchor" id="a6cac71bb600f9f7c6fbed9335fd22d37"></a><!-- doxytag: member="bdm::object_ptr::operator bool" ref="a6cac71bb600f9f7c6fbed9335fd22d37" args="() const " --> |
| 236 | <div class="memitem"> |
| 237 | <div class="memproto"> |
| 238 | <div class="memtemplate"> |
| 239 | template<typename T> </div> |
| 240 | <table class="memname"> |
| 241 | <tr> |
| 242 | <td class="memname"><a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::operator bool </td> |
| 243 | <td>(</td> |
| 244 | <td class="paramname"></td> |
| 245 | <td> ) </td> |
| 246 | <td> const<code> [inline, inherited]</code></td> |
| 247 | </tr> |
| 248 | </table> |
| 249 | </div> |
| 250 | <div class="memdoc"> |
| 251 | |
| 252 | <p>Boolean cast. </p> |
| 253 | <p>This operator returns true if and only if the instance isn't empty. </p> |
| 254 | |
| 255 | </div> |
| 256 | </div> |
| 257 | <a class="anchor" id="ab3cd369b00369ab92456aa0645e8d560"></a><!-- doxytag: member="bdm::object_ptr::operator shared_ptr< const U >" ref="ab3cd369b00369ab92456aa0645e8d560" args="() const " --> |
| 258 | <div class="memitem"> |
| 259 | <div class="memproto"> |
| 260 | <div class="memtemplate"> |
| 261 | template<typename T> </div> |
| 262 | <div class="memtemplate"> |
| 263 | template<typename U > </div> |
| 264 | <table class="memname"> |
| 265 | <tr> |
| 266 | <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> |
| 267 | <td>(</td> |
| 268 | <td class="paramname"></td> |
| 269 | <td> ) </td> |
| 270 | <td> const<code> [inline, inherited]</code></td> |
| 271 | </tr> |
| 272 | </table> |
| 273 | </div> |
| 274 | <div class="memdoc"> |
| 275 | |
| 276 | <p>const cast </p> |
| 277 | <p>Shared pointer to T can be converted to shared pointer to const T, just like T * can be converted to T const *. </p> |
| 278 | |
| 279 | </div> |
| 280 | </div> |
| 281 | <a class="anchor" id="ade000a72fe73804aa26962432f264800"></a><!-- doxytag: member="bdm::object_ptr::operator*" ref="ade000a72fe73804aa26962432f264800" args="() const " --> |
| 282 | <div class="memitem"> |
| 283 | <div class="memproto"> |
| 284 | <div class="memtemplate"> |
| 285 | template<typename T> </div> |
| 286 | <table class="memname"> |
| 287 | <tr> |
| 288 | <td class="memname">const T& <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::operator* </td> |
| 289 | <td>(</td> |
| 290 | <td class="paramname"></td> |
| 291 | <td> ) </td> |
| 292 | <td> const<code> [inline, inherited]</code></td> |
| 293 | </tr> |
| 294 | </table> |
| 295 | </div> |
| 296 | <div class="memdoc"> |
| 297 | <p>Returns a reference to the object pointed to by the stored pointer. This method may only be called when the stored pointer isn't NULL. </p> |
| 298 | |
| 299 | </div> |
| 300 | </div> |
| 301 | <a class="anchor" id="ade38de837267becf5eed2839fea42c45"></a><!-- doxytag: member="bdm::object_ptr::operator*" ref="ade38de837267becf5eed2839fea42c45" args="()" --> |
| 302 | <div class="memitem"> |
| 303 | <div class="memproto"> |
| 304 | <div class="memtemplate"> |
| 305 | template<typename T> </div> |
| 306 | <table class="memname"> |
| 307 | <tr> |
| 308 | <td class="memname">T& <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::operator* </td> |
| 309 | <td>(</td> |
| 310 | <td class="paramname"></td> |
321 | | |
322 | | <p> |
323 | | Returns a reference to the object pointed to by the stored pointer. This method may only be called when the stored pointer isn't NULL. |
324 | | </div> |
325 | | </div><p> |
326 | | <a class="anchor" name="d89ec7ceb318241d833c7d278444396d"></a><!-- doxytag: member="bdm::object_ptr::operator->" ref="d89ec7ceb318241d833c7d278444396d" args="() const" --> |
327 | | <div class="memitem"> |
328 | | <div class="memproto"> |
329 | | <table class="memname"> |
330 | | <tr> |
331 | | <td class="memname">const T * <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::operator-> </td> |
332 | | <td>(</td> |
333 | | <td class="paramname"> </td> |
334 | | <td> ) </td> |
335 | | <td> const<code> [inline, inherited]</code></td> |
336 | | </tr> |
337 | | </table> |
338 | | </div> |
339 | | <div class="memdoc"> |
340 | | |
341 | | <p> |
342 | | Returns the stored pointer (which remains owned by this instance). This method may only be called when the stored pointer isn't NULL. |
343 | | </div> |
344 | | </div><p> |
345 | | <a class="anchor" name="bcaae812868eacbad050beda465d2327"></a><!-- doxytag: member="bdm::object_ptr::operator->" ref="bcaae812868eacbad050beda465d2327" args="()" --> |
346 | | <div class="memitem"> |
347 | | <div class="memproto"> |
348 | | <table class="memname"> |
349 | | <tr> |
350 | | <td class="memname">T * <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::operator-> </td> |
351 | | <td>(</td> |
352 | | <td class="paramname"> </td> |
| 317 | <p>Returns a reference to the object pointed to by the stored pointer. This method may only be called when the stored pointer isn't NULL. </p> |
| 318 | |
| 319 | </div> |
| 320 | </div> |
| 321 | <a class="anchor" id="ad89ec7ceb318241d833c7d278444396d"></a><!-- doxytag: member="bdm::object_ptr::operator->" ref="ad89ec7ceb318241d833c7d278444396d" args="() const " --> |
| 322 | <div class="memitem"> |
| 323 | <div class="memproto"> |
| 324 | <div class="memtemplate"> |
| 325 | template<typename T> </div> |
| 326 | <table class="memname"> |
| 327 | <tr> |
| 328 | <td class="memname">const T* <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::operator-> </td> |
| 329 | <td>(</td> |
| 330 | <td class="paramname"></td> |
| 331 | <td> ) </td> |
| 332 | <td> const<code> [inline, inherited]</code></td> |
| 333 | </tr> |
| 334 | </table> |
| 335 | </div> |
| 336 | <div class="memdoc"> |
| 337 | <p>Returns the stored pointer (which remains owned by this instance). This method may only be called when the stored pointer isn't NULL. </p> |
| 338 | |
| 339 | </div> |
| 340 | </div> |
| 341 | <a class="anchor" id="abcaae812868eacbad050beda465d2327"></a><!-- doxytag: member="bdm::object_ptr::operator->" ref="abcaae812868eacbad050beda465d2327" args="()" --> |
| 342 | <div class="memitem"> |
| 343 | <div class="memproto"> |
| 344 | <div class="memtemplate"> |
| 345 | template<typename T> </div> |
| 346 | <table class="memname"> |
| 347 | <tr> |
| 348 | <td class="memname">T* <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::operator-> </td> |
| 349 | <td>(</td> |
| 350 | <td class="paramname"></td> |
359 | | |
360 | | <p> |
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. |
381 | | </div> |
382 | | </div><p> |
383 | | <hr>The documentation for this class was generated from the following file:<ul> |
384 | | <li><a class="el" href="shared__ptr_8h-source.html">shared_ptr.h</a></ul> |
385 | | </div> |
386 | | <hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 29 20:49:46 2009 for mixpp by |
| 357 | <p>Dereferences the stored pointer (which remains owned by this instance). This method may only be called when the stored pointer isn't NULL. </p> |
| 358 | |
| 359 | </div> |
| 360 | </div> |
| 361 | <a class="anchor" id="a8e52b8887a4408c52b5263a5717343f2"></a><!-- doxytag: member="bdm::object_ptr::use_count" ref="a8e52b8887a4408c52b5263a5717343f2" args="() const " --> |
| 362 | <div class="memitem"> |
| 363 | <div class="memproto"> |
| 364 | <div class="memtemplate"> |
| 365 | template<typename T> </div> |
| 366 | <table class="memname"> |
| 367 | <tr> |
| 368 | <td class="memname">long <a class="el" href="classbdm_1_1shared__ptr.html">bdm::shared_ptr</a>< T >::use_count </td> |
| 369 | <td>(</td> |
| 370 | <td class="paramname"></td> |
| 371 | <td> ) </td> |
| 372 | <td> const<code> [inline, inherited]</code></td> |
| 373 | </tr> |
| 374 | </table> |
| 375 | </div> |
| 376 | <div class="memdoc"> |
| 377 | <p>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. </p> |
| 378 | |
| 379 | </div> |
| 380 | </div> |
| 381 | <hr/>The documentation for this class was generated from the following file:<ul> |
| 382 | <li><a class="el" href="shared__ptr_8h_source.html">shared_ptr.h</a></li> |
| 383 | </ul> |
| 384 | </div> |
| 385 | <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Aug 30 22:10:50 2009 for mixpp by |