dlvhex  2.5.0
bm::ptr_guard< T > Class Template Reference

Mini auto-pointer for internal memory management. More...

#include <vs10/bm/bmutil.h>

Public Member Functions

 ptr_guard (T *p)
 ~ptr_guard ()
 ptr_guard (T *p)
 ~ptr_guard ()

Private Member Functions

 ptr_guard (const ptr_guard< T > &p)
ptr_guardoperator= (const ptr_guard< T > &p)
 ptr_guard (const ptr_guard< T > &p)
ptr_guardoperator= (const ptr_guard< T > &p)

Private Attributes

T * ptr_

Detailed Description

template<class T>
class bm::ptr_guard< T >

Mini auto-pointer for internal memory management.

Definition at line 105 of file bmutil.h.


Constructor & Destructor Documentation

template<class T>
bm::ptr_guard< T >::ptr_guard ( T *  p) [inline]

Definition at line 108 of file bmutil.h.

template<class T>
bm::ptr_guard< T >::~ptr_guard ( ) [inline]

Definition at line 109 of file bmutil.h.

References bm::ptr_guard< T >::ptr_.

template<class T>
bm::ptr_guard< T >::ptr_guard ( const ptr_guard< T > &  p) [private]
template<class T>
bm::ptr_guard< T >::ptr_guard ( T *  p) [inline]

Definition at line 108 of file bmutil.h.

template<class T>
bm::ptr_guard< T >::~ptr_guard ( ) [inline]

Definition at line 109 of file bmutil.h.

References bm::ptr_guard< T >::ptr_.

template<class T>
bm::ptr_guard< T >::ptr_guard ( const ptr_guard< T > &  p) [private]

Member Function Documentation

template<class T>
ptr_guard& bm::ptr_guard< T >::operator= ( const ptr_guard< T > &  p) [private]
template<class T>
ptr_guard& bm::ptr_guard< T >::operator= ( const ptr_guard< T > &  p) [private]

Field Documentation

template<class T>
T * bm::ptr_guard< T >::ptr_ [private]

Definition at line 114 of file bmutil.h.

Referenced by bm::ptr_guard< T >::~ptr_guard().


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