Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | List of all members
toolbox::util::RefCount< DerivedT, PolicyT > Class Template Reference

Base class for atomic referenced counted objects. More...

#include <toolbox/util/RefCount.hpp>

Public Member Functions

constexpr RefCount () noexcept=default
 
 ~RefCount ()=default
 
constexpr RefCount (const RefCount &) noexcept=default
 
RefCountoperator= (const RefCount &) noexcept=default
 
constexpr RefCount (RefCount &&) noexcept=default
 
RefCountoperator= (RefCount &&) noexcept=default
 
void add_ref () const noexcept
 
void release () const noexcept
 
int ref_count () const noexcept
 

Detailed Description

template<typename DerivedT, typename PolicyT>
class toolbox::util::RefCount< DerivedT, PolicyT >

Base class for atomic referenced counted objects.

Definition at line 61 of file RefCount.hpp.

Constructor & Destructor Documentation

◆ RefCount() [1/3]

constexpr toolbox::util::RefCount< DerivedT, PolicyT >::RefCount ( )
constexprdefaultnoexcept

◆ ~RefCount()

◆ RefCount() [2/3]

constexpr toolbox::util::RefCount< DerivedT, PolicyT >::RefCount ( const RefCount< DerivedT, PolicyT > &  )
constexprdefaultnoexcept

◆ RefCount() [3/3]

constexpr toolbox::util::RefCount< DerivedT, PolicyT >::RefCount ( RefCount< DerivedT, PolicyT > &&  )
constexprdefaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ add_ref()

void toolbox::util::RefCount< DerivedT, PolicyT >::add_ref ( ) const
inlinenoexcept

Definition at line 74 of file RefCount.hpp.

◆ release()

void toolbox::util::RefCount< DerivedT, PolicyT >::release ( ) const
inlinenoexcept

Definition at line 75 of file RefCount.hpp.

◆ ref_count()

int toolbox::util::RefCount< DerivedT, PolicyT >::ref_count ( ) const
inlinenoexcept

Definition at line 82 of file RefCount.hpp.


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