Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
atomic_countable Struct Reference

#include <atomic_smart_ptr.h>

Inheritance diagram for atomic_countable:
Inheritance graph
[legend]

Public Member Functions

 atomic_countable (const atomic_countable &) noexcept
 
atomic_countableoperator= (const atomic_countable &)=delete
 

Private Types

typedef uintptr_t Refcnt
 

Private Member Functions

void set_deleter (const std::function< void()> &d)
 
std::function< void()> get_deleter () const
 

Private Attributes

atomic< Refcnt > refcnt
 Global reference counter.
 
std::function< void()> m_deleter
 

Friends

template<typename X , typename Y , typename Z , typename E >
struct atomic_shared_ptr_base
 
template<typename X >
class atomic_shared_ptr
 
template<typename X , typename Y >
class local_shared_ptr
 

Detailed Description

Use subclass of this to be storaged in atomic_shared_ptr with intrusive counting to obtain better performance.

Definition at line 89 of file atomic_smart_ptr.h.


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

Generated for KAME4 by  doxygen 1.8.3