MAutoPtr< T > Class Template Reference

#include <MercuryUtil.h>

Inheritance diagram for MAutoPtr< T >:

Inheritance graph
[legend]
Collaboration diagram for MAutoPtr< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MAutoPtr (T *ptr)
 MAutoPtr ()
 MAutoPtr (const MAutoPtr< T > &autoPtr)
 ~MAutoPtr ()
bool operator< (const MAutoPtr &rhs) const
bool operator> (const MAutoPtr &rhs) const
bool operator<= (const MAutoPtr &rhs) const
bool operator>= (const MAutoPtr &rhs) const
bool operator== (const MAutoPtr &rhs) const
bool operator!= (const MAutoPtr &rhs) const
MAutoPtroperator= (const MAutoPtr &rhs)
const T & operator-> * (MAutoPtr< T > &autoPtr) const
T & operator-> * (MAutoPtr< T > &autoPtr)
 operator T * ()
 operator const T * () const

Private Member Functions

void TryDelete ()

Private Attributes

T * m_ptr
unsigned int * m_count

Detailed Description

template<typename T>
class MAutoPtr< T >

Definition at line 123 of file MercuryUtil.h.


Constructor & Destructor Documentation

template<typename T>
MAutoPtr< T >::MAutoPtr ( T *  ptr  )  [inline]

Definition at line 126 of file MercuryUtil.h.

template<typename T>
MAutoPtr< T >::MAutoPtr (  )  [inline]

Definition at line 133 of file MercuryUtil.h.

template<typename T>
MAutoPtr< T >::MAutoPtr ( const MAutoPtr< T > &  autoPtr  )  [inline]

Definition at line 138 of file MercuryUtil.h.

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

Definition at line 145 of file MercuryUtil.h.


Member Function Documentation

template<typename T>
bool MAutoPtr< T >::operator< ( const MAutoPtr< T > &  rhs  )  const [inline]

Definition at line 148 of file MercuryUtil.h.

template<typename T>
bool MAutoPtr< T >::operator> ( const MAutoPtr< T > &  rhs  )  const [inline]

Definition at line 149 of file MercuryUtil.h.

template<typename T>
bool MAutoPtr< T >::operator<= ( const MAutoPtr< T > &  rhs  )  const [inline]

Definition at line 150 of file MercuryUtil.h.

template<typename T>
bool MAutoPtr< T >::operator>= ( const MAutoPtr< T > &  rhs  )  const [inline]

Definition at line 151 of file MercuryUtil.h.

template<typename T>
bool MAutoPtr< T >::operator== ( const MAutoPtr< T > &  rhs  )  const [inline]

Definition at line 152 of file MercuryUtil.h.

template<typename T>
bool MAutoPtr< T >::operator!= ( const MAutoPtr< T > &  rhs  )  const [inline]

Definition at line 153 of file MercuryUtil.h.

template<typename T>
MAutoPtr& MAutoPtr< T >::operator= ( const MAutoPtr< T > &  rhs  )  [inline]

Definition at line 156 of file MercuryUtil.h.

template<typename T>
const T& MAutoPtr< T >::operator-> * ( MAutoPtr< T > &  autoPtr  )  const [inline]

Definition at line 167 of file MercuryUtil.h.

template<typename T>
T& MAutoPtr< T >::operator-> * ( MAutoPtr< T > &  autoPtr  )  [inline]

Definition at line 168 of file MercuryUtil.h.

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

Definition at line 170 of file MercuryUtil.h.

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

Definition at line 171 of file MercuryUtil.h.

template<typename T>
void MAutoPtr< T >::TryDelete (  )  [inline, private]

Definition at line 174 of file MercuryUtil.h.


Member Data Documentation

template<typename T>
T* MAutoPtr< T >::m_ptr [private]

Definition at line 185 of file MercuryUtil.h.

template<typename T>
unsigned int* MAutoPtr< T >::m_count [private]

Definition at line 186 of file MercuryUtil.h.


The documentation for this class was generated from the following file:
Hosted by SourceForge.net Logo