tCheckedPTR< T > Class Template Reference

#include <tSafePTR.h>

Inheritance diagram for tCheckedPTR< T >:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 tCheckedPTR (T *x)
 tCheckedPTR (const tCheckedPTR< T > &x)
 tCheckedPTR ()
 ~tCheckedPTR ()
tCheckedPTR< T > & operator= (T *x)
tCheckedPTR< T > & operator= (const tCheckedPTR< T > &x)
T * operator-> () const
T & operator * () const
 operator T * () const
bool operator== (const T *x) const
bool operator!= (const T *x) const
bool operator== (const tCheckedPTR< T > &x) const
bool operator!= (const tCheckedPTR< T > &x) const
void Destroy ()

Private Types

typedef T myclass


Detailed Description

template<class T>
class tCheckedPTR< T >

Definition at line 63 of file tSafePTR.h.


Member Typedef Documentation

template<class T>
typedef T tCheckedPTR< T >::myclass [private]

Definition at line 64 of file tSafePTR.h.


Constructor & Destructor Documentation

template<class T>
tCheckedPTR< T >::tCheckedPTR ( T *  x  )  [inline]

Definition at line 66 of file tSafePTR.h.

00066 :tCheckedPTRBase(x){};

template<class T>
tCheckedPTR< T >::tCheckedPTR ( const tCheckedPTR< T > &  x  )  [inline]

Definition at line 67 of file tSafePTR.h.

00067 :tCheckedPTRBase(x.target){};

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

Definition at line 68 of file tSafePTR.h.

00068 :tCheckedPTRBase(){};

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

Definition at line 69 of file tSafePTR.h.

00069 {};


Member Function Documentation

template<class T>
tCheckedPTR<T>& tCheckedPTR< T >::operator= ( T *  x  )  [inline]

Definition at line 71 of file tSafePTR.h.

References tCheckedPTRBase::operator=().

00071 {tCheckedPTRBase::operator=(x); return *this;}

Here is the call graph for this function:

template<class T>
tCheckedPTR<T>& tCheckedPTR< T >::operator= ( const tCheckedPTR< T > &  x  )  [inline]

Definition at line 72 of file tSafePTR.h.

References tCheckedPTRBase::operator=(), and tCheckedPTRBase::target.

00073     {tCheckedPTRBase::operator=(x.target); return *this;}

Here is the call graph for this function:

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

Definition at line 74 of file tSafePTR.h.

References tCheckedPTRBase::target.

00074 {return reinterpret_cast<T*>(target);}

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

Definition at line 75 of file tSafePTR.h.

References tCheckedPTRBase::target.

00075 {return *reinterpret_cast<T*>(target);}

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

Definition at line 76 of file tSafePTR.h.

References tCheckedPTRBase::target.

00076 {return reinterpret_cast<T*>(target);}

template<class T>
bool tCheckedPTR< T >::operator== ( const T *  x  )  const [inline]

Definition at line 79 of file tSafePTR.h.

References tCheckedPTRBase::target.

00079 {return target==x;}

template<class T>
bool tCheckedPTR< T >::operator!= ( const T *  x  )  const [inline]

Definition at line 80 of file tSafePTR.h.

References tCheckedPTRBase::target.

00080 {return target!=x;}

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

Definition at line 81 of file tSafePTR.h.

References tCheckedPTRBase::target.

00081 {return target==x.target;}

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

Definition at line 82 of file tSafePTR.h.

References tCheckedPTRBase::target.

00082 {return target!=x.target;}

template<class T>
void tCheckedPTR< T >::Destroy ( void   )  [inline]

Definition at line 84 of file tSafePTR.h.

References NULL, and tCheckedPTRBase::target.

00084                   {
00085         if (target){
00086             T *dummy=reinterpret_cast<T*>(target);
00087             target=NULL;
00088             delete dummy;
00089         }
00090     }


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:55:02 2008 for Armagetron Advanced by  doxygen 1.5.4