Otclient  14/8/2020
stdext::shared_base< T > Class Template Reference

#include <shared_ptr.h>

Public Member Functions

 shared_base (T *p)
 
 ~shared_base ()
 
void add_ref ()
 
void dec_ref ()
 
void add_weak_ref ()
 
void dec_weak_ref ()
 
void set (T *p)
 
T * get ()
 
refcount_t ref_count ()
 
refcount_t weak_count ()
 
bool expired ()
 

Detailed Description

template<class T>
class stdext::shared_base< T >

Definition at line 46 of file shared_ptr.h.

Constructor & Destructor Documentation

◆ shared_base()

template<class T >
stdext::shared_base< T >::shared_base ( T *  p)
inline

Definition at line 49 of file shared_ptr.h.

◆ ~shared_base()

template<class T >
stdext::shared_base< T >::~shared_base ( )
inline

Definition at line 50 of file shared_ptr.h.

Member Function Documentation

◆ add_ref()

template<class T >
void stdext::shared_base< T >::add_ref ( )
inline

Definition at line 52 of file shared_ptr.h.

◆ add_weak_ref()

template<class T >
void stdext::shared_base< T >::add_weak_ref ( )
inline

Definition at line 62 of file shared_ptr.h.

Here is the caller graph for this function:

◆ dec_ref()

template<class T >
void stdext::shared_base< T >::dec_ref ( )
inline

Definition at line 53 of file shared_ptr.h.

◆ dec_weak_ref()

template<class T >
void stdext::shared_base< T >::dec_weak_ref ( )
inline

Definition at line 63 of file shared_ptr.h.

Here is the caller graph for this function:

◆ expired()

template<class T >
bool stdext::shared_base< T >::expired ( )
inline

Definition at line 78 of file shared_ptr.h.

Here is the caller graph for this function:

◆ get()

template<class T >
T* stdext::shared_base< T >::get ( )
inline

Definition at line 74 of file shared_ptr.h.

Here is the caller graph for this function:

◆ ref_count()

template<class T >
refcount_t stdext::shared_base< T >::ref_count ( )
inline

Definition at line 76 of file shared_ptr.h.

Here is the caller graph for this function:

◆ set()

template<class T >
void stdext::shared_base< T >::set ( T *  p)
inline

Definition at line 68 of file shared_ptr.h.

◆ weak_count()

template<class T >
refcount_t stdext::shared_base< T >::weak_count ( )
inline

Definition at line 77 of file shared_ptr.h.

Here is the caller graph for this function:

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