C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::detail::plain_ref_counted Class Reference

Base class for reference counted objects with an plain (i.e., thread-unsafe) reference count. More...

#include <plain_ref_counted.hpp>

Inheritance diagram for caf::detail::plain_ref_counted:
caf::flow::observer_impl_base< on_success_arg_t< OnSuccess > > caf::flow::observer_impl_base< T > caf::flow::op::ucast_sub_state< T > caf::flow::subscription::impl_base caf::flow::forwarder< T, Target, Token > caf::flow::op::cell_sub< T > caf::flow::op::concat_sub< T > caf::flow::op::merge_sub< T > caf::flow::op::sample_sub< T > caf::flow::op::zip_with_sub< F, Ts > caf::flow::subscription::fwd_impl

Public Member Functions

 plain_ref_counted (const plain_ref_counted &)
 
plain_ref_countedoperator= (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_
 

Detailed Description

Base class for reference counted objects with an plain (i.e., thread-unsafe) reference count.


The documentation for this class was generated from the following files: