C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
caf::detail::atomic_ref_counted Class Reference

Base class for reference counted objects with an atomic reference count. More...

#include <atomic_ref_counted.hpp>

Inheritance diagram for caf::detail::atomic_ref_counted:
caf::flow::buffer_writer_impl< Buffer > caf::flow::op::from_resource_sub< Buffer > caf::net::multiplexer caf::net::socket_manager caf::ref_counted caf::abstract_group caf::async::spsc_buffer< T > caf::group_module caf::io::network::manager caf::io::network::multiplexer::runnable caf::logger caf::net::dsl::config_base caf::net::http::responder::promise_state caf::net::http::route

Public Member Functions

 atomic_ref_counted (const atomic_ref_counted &)
 
atomic_ref_countedoperator= (const atomic_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

std::atomic< size_t > rc_
 

Detailed Description

Base class for reference counted objects with an atomic reference count.


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