AutoPtr< T > Class Template Reference

#include <AutoPtr.h>

Public Member Functions

 AutoPtr (T *const p=0)
 ~AutoPtr ()
void deallocate ()
T * release ()
void operator= (T *const p)
T * operator-> () const
 operator T * () const
 operator bool () const

Private Member Functions

 AutoPtr (const AutoPtr &)
void operator= (AutoPtr &)

Private Attributes

T * p_

Detailed Description

template<typename T>
class AutoPtr< T >

Definition at line 4 of file AutoPtr.h.


Constructor & Destructor Documentation

template<typename T >
AutoPtr< T >::AutoPtr ( T *const   p = 0  )  [inline, explicit]

Definition at line 7 of file AutoPtr.h.

template<typename T >
AutoPtr< T >::~AutoPtr (  )  [inline]

Definition at line 12 of file AutoPtr.h.

References AutoPtr< T >::p_.

template<typename T >
AutoPtr< T >::AutoPtr ( const AutoPtr< T > &   )  [private]

Member Function Documentation

template<typename T >
void AutoPtr< T >::deallocate (  )  [inline]

Definition at line 18 of file AutoPtr.h.

template<typename T >
AutoPtr< T >::operator bool (  )  const [inline]

Definition at line 47 of file AutoPtr.h.

References AutoPtr< T >::p_.

template<typename T >
AutoPtr< T >::operator T * (  )  const [inline]

Definition at line 42 of file AutoPtr.h.

References AutoPtr< T >::p_.

template<typename T >
T* AutoPtr< T >::operator-> (  )  const [inline]

Definition at line 37 of file AutoPtr.h.

References AutoPtr< T >::p_.

template<typename T >
void AutoPtr< T >::operator= ( AutoPtr< T > &   )  [private]
template<typename T >
void AutoPtr< T >::operator= ( T *const   p  )  [inline]

Definition at line 30 of file AutoPtr.h.

References AutoPtr< T >::p_.

template<typename T >
T* AutoPtr< T >::release (  )  [inline]

Definition at line 23 of file AutoPtr.h.

References AutoPtr< T >::p_.


Field Documentation

template<typename T >
T* AutoPtr< T >::p_ [private]

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

Generated by  doxygen 1.6.2