|
C++ Actor Framework 0.19
|
Base class for reference counted objects with an plain (i.e., thread-unsafe) reference count. More...
#include <plain_ref_counted.hpp>
Public Member Functions | |
| plain_ref_counted (const plain_ref_counted &) | |
| plain_ref_counted & | operator= (const plain_ref_counted &) |
| void | ref () const noexcept |
| Increases reference count by one. | |
| void | deref () const noexcept |
Decreases reference count by one and calls request_deletion when it drops to zero. | |
| bool | unique () const noexcept |
| Queries whether there is exactly one reference. | |
| size_t | get_reference_count () const noexcept |
| Queries the current reference count for this object. | |
Protected Attributes | |
| size_t | rc_ |
Base class for reference counted objects with an plain (i.e., thread-unsafe) reference count.