TSmartPointer< T > Class Template Reference

#include <TSmartPointer.h>

List of all members.

Public Member Functions

 TSmartPointer ()
 TSmartPointer (T *pObject)
 TSmartPointer (const TSmartPointer &other)
virtual ~TSmartPointer ()
TSmartPointeroperator= (const TSmartPointer &other)
TSmartPointeroperator= (T *pObject)
T & operator* () const
T * operator-> () const
 operator T * () const
 operator const T * () const
 operator bool () const
bool operator! () const
bool operator== (const TSmartPointer &other) const
bool operator== (const T &other) const
bool operator!= (const TSmartPointer &other) const
bool operator!= (const T &other) const

Private Member Functions

void AddRef ()
void Release ()

Private Attributes

T * m_pObject


Detailed Description

template<class T>
class TSmartPointer< T >

Definition at line 29 of file TSmartPointer.h.


Constructor & Destructor Documentation

template<class T >
TSmartPointer< T >::TSmartPointer (  )  [inline]

Definition at line 35 of file TSmartPointer.h.

template<class T >
TSmartPointer< T >::TSmartPointer ( T *  pObject  )  [inline]

Definition at line 36 of file TSmartPointer.h.

template<class T >
TSmartPointer< T >::TSmartPointer ( const TSmartPointer< T > &  other  )  [inline]

Definition at line 37 of file TSmartPointer.h.

template<class T >
virtual TSmartPointer< T >::~TSmartPointer (  )  [inline, virtual]

Definition at line 39 of file TSmartPointer.h.


Member Function Documentation

template<class T >
void TSmartPointer< T >::AddRef (  )  [inline, private]

template<class T >
TSmartPointer< T >::operator bool (  )  const [inline]

Definition at line 63 of file TSmartPointer.h.

template<class T >
TSmartPointer< T >::operator const T * (  )  const [inline]

Definition at line 61 of file TSmartPointer.h.

template<class T >
TSmartPointer< T >::operator T * (  )  const [inline]

Definition at line 60 of file TSmartPointer.h.

template<class T >
bool TSmartPointer< T >::operator! (  )  const [inline]

Definition at line 65 of file TSmartPointer.h.

template<class T >
bool TSmartPointer< T >::operator!= ( const T &  other  )  const [inline]

Definition at line 69 of file TSmartPointer.h.

template<class T >
bool TSmartPointer< T >::operator!= ( const TSmartPointer< T > &  other  )  const [inline]

Definition at line 68 of file TSmartPointer.h.

template<class T >
T& TSmartPointer< T >::operator* (  )  const [inline]

Definition at line 57 of file TSmartPointer.h.

template<class T >
T* TSmartPointer< T >::operator-> (  )  const [inline]

Definition at line 58 of file TSmartPointer.h.

template<class T >
TSmartPointer& TSmartPointer< T >::operator= ( T *  pObject  )  [inline]

Definition at line 46 of file TSmartPointer.h.

template<class T >
TSmartPointer& TSmartPointer< T >::operator= ( const TSmartPointer< T > &  other  )  [inline]

Definition at line 41 of file TSmartPointer.h.

template<class T >
bool TSmartPointer< T >::operator== ( const T &  other  )  const [inline]

Definition at line 67 of file TSmartPointer.h.

template<class T >
bool TSmartPointer< T >::operator== ( const TSmartPointer< T > &  other  )  const [inline]

Definition at line 66 of file TSmartPointer.h.

template<class T >
void TSmartPointer< T >::Release (  )  [inline, private]


Member Data Documentation

template<class T >
T* TSmartPointer< T >::m_pObject [private]


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

Generated on Wed Dec 10 03:22:19 2008 for VStudio by  doxygen 1.5.7.1