mn::pointer::basic_shared_ptr< T, TRefType > Class Template Reference

#include <mn_shared_ptr.hpp>

Public Types

using value_type = T
 
using element_type = T
 
using reference = T &
 
using const_value_type = const value_type
 
using pointer = value_type *
 
using ref_type = TRefType
 
using self_type = basic_shared_ptr< value_type, ref_type >
 

Public Member Functions

 basic_shared_ptr (pointer ptr)
 
 basic_shared_ptr (const self_type &sp)
 
 ~basic_shared_ptr ()
 
pointer release ()
 
void reset (pointer pValue=0)
 
ref_type ref ()
 
void swap (self_type &b)
 
pointer get () const
 
pointer operator-> () const
 
const_value_typeoperator* ()
 
 operator bool ()
 
self_typeoperator= (self_type &sp)
 

Private Attributes

ref_type m_ref
 
pointer m_ptr
 

Member Typedef Documentation

◆ const_value_type

template<typename T , typename TRefType >
using mn::pointer::basic_shared_ptr< T, TRefType >::const_value_type = const value_type

◆ element_type

template<typename T , typename TRefType >
using mn::pointer::basic_shared_ptr< T, TRefType >::element_type = T

◆ pointer

template<typename T , typename TRefType >
using mn::pointer::basic_shared_ptr< T, TRefType >::pointer = value_type*

◆ ref_type

template<typename T , typename TRefType >
using mn::pointer::basic_shared_ptr< T, TRefType >::ref_type = TRefType

◆ reference

template<typename T , typename TRefType >
using mn::pointer::basic_shared_ptr< T, TRefType >::reference = T&

◆ self_type

template<typename T , typename TRefType >
using mn::pointer::basic_shared_ptr< T, TRefType >::self_type = basic_shared_ptr<value_type, ref_type>

◆ value_type

template<typename T , typename TRefType >
using mn::pointer::basic_shared_ptr< T, TRefType >::value_type = T

Constructor & Destructor Documentation

◆ basic_shared_ptr() [1/2]

template<typename T , typename TRefType >
mn::pointer::basic_shared_ptr< T, TRefType >::basic_shared_ptr ( pointer  ptr)
inlineexplicit

◆ basic_shared_ptr() [2/2]

template<typename T , typename TRefType >
mn::pointer::basic_shared_ptr< T, TRefType >::basic_shared_ptr ( const self_type sp)
inline

◆ ~basic_shared_ptr()

template<typename T , typename TRefType >
mn::pointer::basic_shared_ptr< T, TRefType >::~basic_shared_ptr ( )
inline

Member Function Documentation

◆ get()

template<typename T , typename TRefType >
pointer mn::pointer::basic_shared_ptr< T, TRefType >::get ( void  ) const
inline

◆ operator bool()

template<typename T , typename TRefType >
mn::pointer::basic_shared_ptr< T, TRefType >::operator bool ( )
inline

◆ operator*()

template<typename T , typename TRefType >
const_value_type& mn::pointer::basic_shared_ptr< T, TRefType >::operator* ( void  )
inline

◆ operator->()

template<typename T , typename TRefType >
pointer mn::pointer::basic_shared_ptr< T, TRefType >::operator-> ( ) const
inline

◆ operator=()

template<typename T , typename TRefType >
self_type& mn::pointer::basic_shared_ptr< T, TRefType >::operator= ( self_type sp)
inline

◆ ref()

template<typename T , typename TRefType >
ref_type mn::pointer::basic_shared_ptr< T, TRefType >::ref ( )
inline

◆ release()

template<typename T , typename TRefType >
pointer mn::pointer::basic_shared_ptr< T, TRefType >::release ( )
inline

◆ reset()

template<typename T , typename TRefType >
void mn::pointer::basic_shared_ptr< T, TRefType >::reset ( pointer  pValue = 0)
inline

◆ swap()

template<typename T , typename TRefType >
void mn::pointer::basic_shared_ptr< T, TRefType >::swap ( self_type b)
inline

Member Data Documentation

◆ m_ptr

template<typename T , typename TRefType >
pointer mn::pointer::basic_shared_ptr< T, TRefType >::m_ptr
private

◆ m_ref

template<typename T , typename TRefType >
ref_type mn::pointer::basic_shared_ptr< T, TRefType >::m_ref
private

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