mn::pointer::basic_scoped_ptr< T > Class Template Reference

#include <mn_scoped_ptr.hpp>

Public Types

using value_type = T
 
using element_type = T
 
using pointer = value_type *
 
using const_value_type = const value_type
 
using self_type = basic_scoped_ptr< value_type >
 

Public Member Functions

 basic_scoped_ptr (pointer pValue=0)
 
 ~basic_scoped_ptr ()
 
void swap (self_type &b)
 
void reset (pointer pValue=0)
 
pointer get ()
 
pointer operator-> ()
 
value_typeoperator* ()
 
 operator bool ()
 

Private Attributes

pointer m_pPointer
 

Member Typedef Documentation

◆ const_value_type

template<typename T >
using mn::pointer::basic_scoped_ptr< T >::const_value_type = const value_type

◆ element_type

template<typename T >
using mn::pointer::basic_scoped_ptr< T >::element_type = T

◆ pointer

template<typename T >
using mn::pointer::basic_scoped_ptr< T >::pointer = value_type*

◆ self_type

◆ value_type

template<typename T >
using mn::pointer::basic_scoped_ptr< T >::value_type = T

Constructor & Destructor Documentation

◆ basic_scoped_ptr()

template<typename T >
mn::pointer::basic_scoped_ptr< T >::basic_scoped_ptr ( pointer  pValue = 0)
inlineexplicit

◆ ~basic_scoped_ptr()

template<typename T >
mn::pointer::basic_scoped_ptr< T >::~basic_scoped_ptr ( )
inline

Member Function Documentation

◆ get()

template<typename T >
pointer mn::pointer::basic_scoped_ptr< T >::get ( void  )
inline

◆ operator bool()

template<typename T >
mn::pointer::basic_scoped_ptr< T >::operator bool ( )
inline

◆ operator*()

template<typename T >
value_type& mn::pointer::basic_scoped_ptr< T >::operator* ( void  )
inline

◆ operator->()

template<typename T >
pointer mn::pointer::basic_scoped_ptr< T >::operator-> ( )
inline

◆ reset()

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

◆ swap()

template<typename T >
void mn::pointer::basic_scoped_ptr< T >::swap ( self_type b)
inline

Member Data Documentation

◆ m_pPointer

template<typename T >
pointer mn::pointer::basic_scoped_ptr< T >::m_pPointer
private

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