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::op::cold< Trait::output_type > caf::flow::op::cold< defer_trait< Factory >::output_type > caf::flow::op::cold< from_steps_output_t< Steps... > > caf::flow::op::cold< int64_t > caf::flow::op::cold< cow_tuple< cow_vector< T >, observable< T > > > caf::flow::op::cold< zip_with_output_t< F, Ts... > > caf::flow::op::hot< async::batch > caf::flow::op::hot< from_generator_output_t< Generator, Steps... > > caf::flow::buffer_writer_impl< Buffer > caf::flow::op::cold< T > caf::flow::op::from_resource_sub< Buffer > caf::flow::op::hot< T > caf::net::socket_manager caf::ref_counted

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 files: