#include <tSafePTR.h>


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 |
Definition at line 63 of file tSafePTR.h.
typedef T tCheckedPTR< T >::myclass [private] |
Definition at line 64 of file tSafePTR.h.
| tCheckedPTR< T >::tCheckedPTR | ( | T * | x | ) | [inline] |
| tCheckedPTR< T >::tCheckedPTR | ( | const tCheckedPTR< T > & | x | ) | [inline] |
| tCheckedPTR< T >::tCheckedPTR | ( | ) | [inline] |
| tCheckedPTR< T >::~tCheckedPTR | ( | ) | [inline] |
| 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;}

| 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;}

| T* tCheckedPTR< T >::operator-> | ( | ) | const [inline] |
Definition at line 74 of file tSafePTR.h.
References tCheckedPTRBase::target.
00074 {return reinterpret_cast<T*>(target);}
| T& tCheckedPTR< T >::operator * | ( | ) | const [inline] |
Definition at line 75 of file tSafePTR.h.
References tCheckedPTRBase::target.
00075 {return *reinterpret_cast<T*>(target);}
| tCheckedPTR< T >::operator T * | ( | ) | const [inline] |
Definition at line 76 of file tSafePTR.h.
References tCheckedPTRBase::target.
00076 {return reinterpret_cast<T*>(target);}
| bool tCheckedPTR< T >::operator== | ( | const T * | x | ) | const [inline] |
| bool tCheckedPTR< T >::operator!= | ( | const T * | x | ) | const [inline] |
| bool tCheckedPTR< T >::operator== | ( | const tCheckedPTR< T > & | x | ) | const [inline] |
| bool tCheckedPTR< T >::operator!= | ( | const tCheckedPTR< T > & | x | ) | const [inline] |
| 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 }
1.5.4