Pol  Revision:cb584c9
weak_ptr_link< T > Class Template Reference

#include <weakptr.h>

+ Inheritance diagram for weak_ptr_link< T >:

Public Member Functions

 weak_ptr_link ()
 
void clear_weakptr ()
 
T * get_weakptr () const
 
void set_weakptr (T *ptr)
 
- Public Member Functions inherited from ref_counted
unsigned int add_ref ()
 
unsigned int count () const
 
unsigned int release ()
 

Private Attributes

std::atomic< T * > _ptr
 

Additional Inherited Members

- Protected Member Functions inherited from ref_counted
 ref_counted ()
 
 ~ref_counted ()=default
 
- Protected Attributes inherited from ref_counted
std::atomic< unsigned int > _count
 

Detailed Description

template<class T>
class weak_ptr_link< T >

Definition at line 33 of file weakptr.h.

Constructor & Destructor Documentation

template<class T >
weak_ptr_link< T >::weak_ptr_link ( )

Definition at line 74 of file weakptr.h.

Member Function Documentation

template<class T >
void weak_ptr_link< T >::clear_weakptr ( )

Definition at line 78 of file weakptr.h.

References weak_ptr_link< T >::_ptr.

template<class T >
T * weak_ptr_link< T >::get_weakptr ( ) const

Definition at line 83 of file weakptr.h.

References weak_ptr_link< T >::_ptr.

template<class T >
void weak_ptr_link< T >::set_weakptr ( T *  ptr)

Definition at line 88 of file weakptr.h.

References weak_ptr_link< T >::_ptr.

Member Data Documentation

template<class T>
std::atomic<T*> weak_ptr_link< T >::_ptr
private

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