#include <tSafePTR.h>
Public Member Functions | |
tCheckedPTRConst () | |
tCheckedPTRConst (const T *x) | |
tCheckedPTRConst (const tCheckedPTRConst< T > &x) | |
tCheckedPTRConst (const tCheckedPTR< T > &x) | |
~tCheckedPTRConst () | |
tCheckedPTRConst< T > & | operator= (const T *x) |
tCheckedPTRConst< T > & | operator= (const tCheckedPTRConst< T > &x) |
tCheckedPTRConst< T > & | operator= (const tCheckedPTR< T > &x) |
const T * | operator-> () const |
const T & | operator * () const |
operator const T * () const | |
bool | operator== (const T *x) const |
bool | operator!= (const T *x) const |
void | Destroy () |
Private Types | |
typedef T | myclass |
Definition at line 93 of file tSafePTR.h.
typedef T tCheckedPTRConst< T >::myclass [private] |
Definition at line 94 of file tSafePTR.h.
tCheckedPTRConst< T >::tCheckedPTRConst | ( | ) | [inline] |
tCheckedPTRConst< T >::tCheckedPTRConst | ( | const T * | x | ) | [inline] |
tCheckedPTRConst< T >::tCheckedPTRConst | ( | const tCheckedPTRConst< T > & | x | ) | [inline] |
tCheckedPTRConst< T >::tCheckedPTRConst | ( | const tCheckedPTR< T > & | x | ) | [inline] |
tCheckedPTRConst< T >::~tCheckedPTRConst | ( | ) | [inline] |
tCheckedPTRConst<T>& tCheckedPTRConst< T >::operator= | ( | const T * | x | ) | [inline] |
Definition at line 102 of file tSafePTR.h.
References tCheckedPTRBase::operator=().
00103 {tCheckedPTRBase::operator=(reinterpret_cast<T *>(x)); return *this;}
tCheckedPTRConst<T>& tCheckedPTRConst< T >::operator= | ( | const tCheckedPTRConst< T > & | x | ) | [inline] |
Definition at line 104 of file tSafePTR.h.
References tCheckedPTRBase::operator=(), and tCheckedPTRBase::target.
00105 {tCheckedPTRBase::operator=(x.target); return *this;}
tCheckedPTRConst<T>& tCheckedPTRConst< T >::operator= | ( | const tCheckedPTR< T > & | x | ) | [inline] |
Definition at line 106 of file tSafePTR.h.
References tCheckedPTRBase::operator=().
00107 {tCheckedPTRBase::operator=(x.operator->()); return *this;}
const T* tCheckedPTRConst< T >::operator-> | ( | ) | const [inline] |
Definition at line 109 of file tSafePTR.h.
References tCheckedPTRBase::target.
00109 {return target;}
const T& tCheckedPTRConst< T >::operator * | ( | ) | const [inline] |
Definition at line 110 of file tSafePTR.h.
References tCheckedPTRBase::target.
00110 {return *reinterpret_cast<T*>(target);}
tCheckedPTRConst< T >::operator const T * | ( | ) | const [inline] |
Definition at line 111 of file tSafePTR.h.
References tCheckedPTRBase::target.
00111 {return reinterpret_cast<const T*>(target);}
bool tCheckedPTRConst< T >::operator== | ( | const T * | x | ) | const [inline] |
bool tCheckedPTRConst< T >::operator!= | ( | const T * | x | ) | const [inline] |
void tCheckedPTRConst< T >::Destroy | ( | void | ) | [inline] |
Definition at line 117 of file tSafePTR.h.
References NULL, and tCheckedPTRBase::target.
00117 { 00118 if (target){ 00119 T *dummy=reinterpret_cast<T *>(target); 00120 target=NULL; 00121 dummy->AddRef(); 00122 dummy->Release(); 00123 } 00124 }