/usr/share/doc/libjuce/apiref/classReferenceCountedObjectPtr.html is in libjuce-doc 4.3.0~repack-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: ReferenceCountedObjectPtr< ReferenceCountedObjectClass > Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">JUCE
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="classReferenceCountedObjectPtr-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">ReferenceCountedObjectPtr< ReferenceCountedObjectClass > Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A smart-pointer class which points to a reference-counted object.
<a href="classReferenceCountedObjectPtr.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aeb4a0ddf04087aa15cf7b607f00c076a"><td class="memItemLeft" align="right" valign="top">typedef ReferenceCountedObjectClass </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a></td></tr>
<tr class="memdesc:aeb4a0ddf04087aa15cf7b607f00c076a"><td class="mdescLeft"> </td><td class="mdescRight">The class being referenced by this pointer. <a href="#aeb4a0ddf04087aa15cf7b607f00c076a">More...</a><br /></td></tr>
<tr class="separator:aeb4a0ddf04087aa15cf7b607f00c076a"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a95c5feac915f1b6731c69a9a44031bba"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#a95c5feac915f1b6731c69a9a44031bba">ReferenceCountedObjectPtr</a> () noexcept</td></tr>
<tr class="memdesc:a95c5feac915f1b6731c69a9a44031bba"><td class="mdescLeft"> </td><td class="mdescRight">Creates a pointer to a null object. <a href="#a95c5feac915f1b6731c69a9a44031bba">More...</a><br /></td></tr>
<tr class="separator:a95c5feac915f1b6731c69a9a44031bba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad0f71a58ca790b16bbdcba846b44e9dd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#ad0f71a58ca790b16bbdcba846b44e9dd">ReferenceCountedObjectPtr</a> (<a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a> *refCountedObject) noexcept</td></tr>
<tr class="memdesc:ad0f71a58ca790b16bbdcba846b44e9dd"><td class="mdescLeft"> </td><td class="mdescRight">Creates a pointer to an object. <a href="#ad0f71a58ca790b16bbdcba846b44e9dd">More...</a><br /></td></tr>
<tr class="separator:ad0f71a58ca790b16bbdcba846b44e9dd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3f97bfd331d1c5b291d59b161c385210"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#a3f97bfd331d1c5b291d59b161c385210">ReferenceCountedObjectPtr</a> (decltype(nullptr)) noexcept</td></tr>
<tr class="memdesc:a3f97bfd331d1c5b291d59b161c385210"><td class="mdescLeft"> </td><td class="mdescRight">Creates a pointer to a null object. <a href="#a3f97bfd331d1c5b291d59b161c385210">More...</a><br /></td></tr>
<tr class="separator:a3f97bfd331d1c5b291d59b161c385210"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a48de50419a9cff7dafd67ab1571d5eb8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#a48de50419a9cff7dafd67ab1571d5eb8">ReferenceCountedObjectPtr</a> (const <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> &other) noexcept</td></tr>
<tr class="memdesc:a48de50419a9cff7dafd67ab1571d5eb8"><td class="mdescLeft"> </td><td class="mdescRight">Copies another pointer. <a href="#a48de50419a9cff7dafd67ab1571d5eb8">More...</a><br /></td></tr>
<tr class="separator:a48de50419a9cff7dafd67ab1571d5eb8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8246744495da90e679c22d592dec96df"><td class="memTemplParams" colspan="2">template<typename Convertible > </td></tr>
<tr class="memitem:a8246744495da90e679c22d592dec96df"><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#a8246744495da90e679c22d592dec96df">ReferenceCountedObjectPtr</a> (const <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< Convertible > &other) noexcept</td></tr>
<tr class="memdesc:a8246744495da90e679c22d592dec96df"><td class="mdescLeft"> </td><td class="mdescRight">Copies another pointer. <a href="#a8246744495da90e679c22d592dec96df">More...</a><br /></td></tr>
<tr class="separator:a8246744495da90e679c22d592dec96df"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aab2ebf3f70f318e4392afdb803f9e3e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#aab2ebf3f70f318e4392afdb803f9e3e9">operator=</a> (const <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> &other)</td></tr>
<tr class="memdesc:aab2ebf3f70f318e4392afdb803f9e3e9"><td class="mdescLeft"> </td><td class="mdescRight">Changes this pointer to point at a different object. <a href="#aab2ebf3f70f318e4392afdb803f9e3e9">More...</a><br /></td></tr>
<tr class="separator:aab2ebf3f70f318e4392afdb803f9e3e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad744900705e306991526a617d5e21690"><td class="memTemplParams" colspan="2">template<typename Convertible > </td></tr>
<tr class="memitem:ad744900705e306991526a617d5e21690"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#ad744900705e306991526a617d5e21690">operator=</a> (const <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< Convertible > &other)</td></tr>
<tr class="memdesc:ad744900705e306991526a617d5e21690"><td class="mdescLeft"> </td><td class="mdescRight">Changes this pointer to point at a different object. <a href="#ad744900705e306991526a617d5e21690">More...</a><br /></td></tr>
<tr class="separator:ad744900705e306991526a617d5e21690"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9336efe926b6cbdc0eb8e0d3cbf33c87"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#a9336efe926b6cbdc0eb8e0d3cbf33c87">operator=</a> (<a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a> *const newObject)</td></tr>
<tr class="memdesc:a9336efe926b6cbdc0eb8e0d3cbf33c87"><td class="mdescLeft"> </td><td class="mdescRight">Changes this pointer to point at a different object. <a href="#a9336efe926b6cbdc0eb8e0d3cbf33c87">More...</a><br /></td></tr>
<tr class="separator:a9336efe926b6cbdc0eb8e0d3cbf33c87"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae5a3fabd321bf4984e3b2cd72a7e3f3f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#ae5a3fabd321bf4984e3b2cd72a7e3f3f">ReferenceCountedObjectPtr</a> (<a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> &&other) noexcept</td></tr>
<tr class="memdesc:ae5a3fabd321bf4984e3b2cd72a7e3f3f"><td class="mdescLeft"> </td><td class="mdescRight">Takes-over the object from another pointer. <a href="#ae5a3fabd321bf4984e3b2cd72a7e3f3f">More...</a><br /></td></tr>
<tr class="separator:ae5a3fabd321bf4984e3b2cd72a7e3f3f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aecfe92f66e1ab8b3df57a9fde835bc54"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#aecfe92f66e1ab8b3df57a9fde835bc54">operator=</a> (<a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> &&other)</td></tr>
<tr class="memdesc:aecfe92f66e1ab8b3df57a9fde835bc54"><td class="mdescLeft"> </td><td class="mdescRight">Takes-over the object from another pointer. <a href="#aecfe92f66e1ab8b3df57a9fde835bc54">More...</a><br /></td></tr>
<tr class="separator:aecfe92f66e1ab8b3df57a9fde835bc54"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a90c9a9a2cf6e4767e2008b81ef9c8bca"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#a90c9a9a2cf6e4767e2008b81ef9c8bca">~ReferenceCountedObjectPtr</a> ()</td></tr>
<tr class="memdesc:a90c9a9a2cf6e4767e2008b81ef9c8bca"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a90c9a9a2cf6e4767e2008b81ef9c8bca">More...</a><br /></td></tr>
<tr class="separator:a90c9a9a2cf6e4767e2008b81ef9c8bca"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a17565bd787961eaee3b0b1d2e3d88c7c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#a17565bd787961eaee3b0b1d2e3d88c7c">operator ReferencedType *</a> () const noexcept</td></tr>
<tr class="memdesc:a17565bd787961eaee3b0b1d2e3d88c7c"><td class="mdescLeft"> </td><td class="mdescRight">Returns the object that this pointer references. <a href="#a17565bd787961eaee3b0b1d2e3d88c7c">More...</a><br /></td></tr>
<tr class="separator:a17565bd787961eaee3b0b1d2e3d88c7c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab6e0886886746e1134970ee2323b80dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#ab6e0886886746e1134970ee2323b80dd">get</a> () const noexcept</td></tr>
<tr class="memdesc:ab6e0886886746e1134970ee2323b80dd"><td class="mdescLeft"> </td><td class="mdescRight">Returns the object that this pointer references. <a href="#ab6e0886886746e1134970ee2323b80dd">More...</a><br /></td></tr>
<tr class="separator:ab6e0886886746e1134970ee2323b80dd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5ae7395b4bbdf44024703467f8a3191e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#a5ae7395b4bbdf44024703467f8a3191e">getObject</a> () const noexcept</td></tr>
<tr class="memdesc:a5ae7395b4bbdf44024703467f8a3191e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the object that this pointer references. <a href="#a5ae7395b4bbdf44024703467f8a3191e">More...</a><br /></td></tr>
<tr class="separator:a5ae7395b4bbdf44024703467f8a3191e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab57cc7cb51b53264016cc7d32159dc4a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classReferenceCountedObjectPtr.html#ab57cc7cb51b53264016cc7d32159dc4a">operator-></a> () const noexcept</td></tr>
<tr class="separator:ab57cc7cb51b53264016cc7d32159dc4a"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template<class ReferenceCountedObjectClass><br />
class ReferenceCountedObjectPtr< ReferenceCountedObjectClass ></h3>
<p>A smart-pointer class which points to a reference-counted object. </p>
<p>The template parameter specifies the class of the object you want to point to - the easiest way to make a class reference-countable is to simply make it inherit from <a class="el" href="classReferenceCountedObject.html" title="A base class which provides methods for reference-counting. ">ReferenceCountedObject</a> or <a class="el" href="classSingleThreadedReferenceCountedObject.html" title="Adds reference-counting to an object. ">SingleThreadedReferenceCountedObject</a>, but if you need to, you can roll your own reference-countable class by implementing a set of methods called incReferenceCount(), decReferenceCount(), and decReferenceCountWithoutDeleting(). See <a class="el" href="classReferenceCountedObject.html" title="A base class which provides methods for reference-counting. ">ReferenceCountedObject</a> for examples of how these methods should behave.</p>
<p>When using this class, you'll probably want to create a typedef to abbreviate the full templated name - e.g. </p><div class="fragment"><div class="line"><span class="keyword">struct </span>MyClass : <span class="keyword">public</span> <a class="code" href="classReferenceCountedObject.html">ReferenceCountedObject</a></div><div class="line">{</div><div class="line"> <span class="keyword">typedef</span> <a class="code" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr<MyClass></a> Ptr;</div><div class="line"> ...</div></div><!-- fragment --><dl class="section see"><dt>See also</dt><dd><a class="el" href="classReferenceCountedObject.html" title="A base class which provides methods for reference-counting. ">ReferenceCountedObject</a>, ReferenceCountedObjectArray </dd></dl>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="aeb4a0ddf04087aa15cf7b607f00c076a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb4a0ddf04087aa15cf7b607f00c076a">§ </a></span>ReferencedType</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="memname">
<tr>
<td class="memname">typedef ReferenceCountedObjectClass <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::<a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>The class being referenced by this pointer. </p>
</div>
</div>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a95c5feac915f1b6731c69a9a44031bba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95c5feac915f1b6731c69a9a44031bba">§ </a></span>ReferenceCountedObjectPtr() <span class="overload">[1/6]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::<a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a pointer to a null object. </p>
</div>
</div>
<a id="ad0f71a58ca790b16bbdcba846b44e9dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0f71a58ca790b16bbdcba846b44e9dd">§ </a></span>ReferenceCountedObjectPtr() <span class="overload">[2/6]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::<a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a> * </td>
<td class="paramname"><em>refCountedObject</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a pointer to an object. </p>
<p>This will increment the object's reference-count. </p>
</div>
</div>
<a id="a3f97bfd331d1c5b291d59b161c385210"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f97bfd331d1c5b291d59b161c385210">§ </a></span>ReferenceCountedObjectPtr() <span class="overload">[3/6]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::<a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> </td>
<td>(</td>
<td class="paramtype">decltype(nullptr) </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a pointer to a null object. </p>
</div>
</div>
<a id="a48de50419a9cff7dafd67ab1571d5eb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48de50419a9cff7dafd67ab1571d5eb8">§ </a></span>ReferenceCountedObjectPtr() <span class="overload">[4/6]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::<a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass > & </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Copies another pointer. </p>
<p>This will increment the object's reference-count. </p>
</div>
</div>
<a id="a8246744495da90e679c22d592dec96df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8246744495da90e679c22d592dec96df">§ </a></span>ReferenceCountedObjectPtr() <span class="overload">[5/6]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<div class="memtemplate">
template<typename Convertible > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::<a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< Convertible > & </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Copies another pointer. </p>
<p>This will increment the object's reference-count (if it is non-null). </p>
</div>
</div>
<a id="ae5a3fabd321bf4984e3b2cd72a7e3f3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5a3fabd321bf4984e3b2cd72a7e3f3f">§ </a></span>ReferenceCountedObjectPtr() <span class="overload">[6/6]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::<a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass > && </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Takes-over the object from another pointer. </p>
</div>
</div>
<a id="a90c9a9a2cf6e4767e2008b81ef9c8bca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90c9a9a2cf6e4767e2008b81ef9c8bca">§ </a></span>~ReferenceCountedObjectPtr()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::~<a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destructor. </p>
<p>This will decrement the object's reference-count, which will cause the object to be deleted when the ref-count hits zero. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aab2ebf3f70f318e4392afdb803f9e3e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab2ebf3f70f318e4392afdb803f9e3e9">§ </a></span>operator=() <span class="overload">[1/4]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>& <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass > & </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes this pointer to point at a different object. </p>
<p>The reference count of the old object is decremented, and it might be deleted if it hits zero. The new object's count is incremented. </p>
</div>
</div>
<a id="ad744900705e306991526a617d5e21690"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad744900705e306991526a617d5e21690">§ </a></span>operator=() <span class="overload">[2/4]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<div class="memtemplate">
template<typename Convertible > </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>& <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< Convertible > & </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes this pointer to point at a different object. </p>
<p>The reference count of the old object is decremented, and it might be deleted if it hits zero. The new object's count is incremented. </p>
</div>
</div>
<a id="a9336efe926b6cbdc0eb8e0d3cbf33c87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9336efe926b6cbdc0eb8e0d3cbf33c87">§ </a></span>operator=() <span class="overload">[3/4]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>& <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a> *const </td>
<td class="paramname"><em>newObject</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes this pointer to point at a different object. </p>
<p>The reference count of the old object is decremented, and it might be deleted if it hits zero. The new object's count is incremented. </p>
</div>
</div>
<a id="aecfe92f66e1ab8b3df57a9fde835bc54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aecfe92f66e1ab8b3df57a9fde835bc54">§ </a></span>operator=() <span class="overload">[4/4]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>& <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass > && </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Takes-over the object from another pointer. </p>
</div>
</div>
<a id="a17565bd787961eaee3b0b1d2e3d88c7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17565bd787961eaee3b0b1d2e3d88c7c">§ </a></span>operator ReferencedType *()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::operator <a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a> * </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the object that this pointer references. </p>
<p>The pointer returned may be null, of course. </p>
</div>
</div>
<a id="ab6e0886886746e1134970ee2323b80dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6e0886886746e1134970ee2323b80dd">§ </a></span>get()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a>* <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::get </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the object that this pointer references. </p>
<p>The pointer returned may be null, of course. </p>
<p>Referenced by <a class="el" href="classWeakReference.html#a0c6e75034092864f959ed7a1389b0e98">WeakReference< InterprocessConnection >::get()</a>, <a class="el" href="classReferenceCountedObjectPtr.html#ad744900705e306991526a617d5e21690">ReferenceCountedObjectPtr< ImagePixelData >::operator=()</a>, and <a class="el" href="classWeakReference.html#a523f66357f106bdf39cd5b49973b3177">WeakReference< InterprocessConnection >::wasObjectDeleted()</a>.</p>
</div>
</div>
<a id="a5ae7395b4bbdf44024703467f8a3191e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ae7395b4bbdf44024703467f8a3191e">§ </a></span>getObject()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a>* <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::getObject </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the object that this pointer references. </p>
<p>The pointer returned may be null, of course. </p>
</div>
</div>
<a id="ab57cc7cb51b53264016cc7d32159dc4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab57cc7cb51b53264016cc7d32159dc4a">§ </a></span>operator->()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class ReferenceCountedObjectClass> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classReferenceCountedObjectPtr.html#aeb4a0ddf04087aa15cf7b607f00c076a">ReferencedType</a>* <a class="el" href="classReferenceCountedObjectPtr.html">ReferenceCountedObjectPtr</a>< ReferenceCountedObjectClass >::operator-> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__ReferenceCountedObject_8h.html">juce_ReferenceCountedObject.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|