#include <tSafePTR.h>
Public Member Functions | |
| tControlledPTR (T *x) | |
| tControlledPTR (const tCheckedPTR< T > &x) | |
| tControlledPTR (const tControlledPTR< T > &x) | |
| tControlledPTR () | |
| tControlledPTR< T > & | operator= (T *x) |
| tControlledPTR< T > & | operator= (const tControlledPTR< 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== (T *x) const |
| bool | operator!= (T *x) const |
| operator bool () const | |
| bool | operator! () const |
| bool | operator== (const tControlledPTR< T > &x) const |
| bool | operator!= (const tControlledPTR< T > &x) const |
| void | Destroy () |
| ~tControlledPTR () | |
Private Member Functions | |
| tCHECKED_PTR (T) target | |
| void | AddRef () |
| void | Release () |
Definition at line 171 of file tSafePTR.h.
| tControlledPTR< T >::tControlledPTR | ( | T * | x | ) | [inline] |
| tControlledPTR< T >::tControlledPTR | ( | const tCheckedPTR< T > & | x | ) | [inline] |
| tControlledPTR< T >::tControlledPTR | ( | const tControlledPTR< T > & | x | ) | [inline] |
| tControlledPTR< T >::tControlledPTR | ( | ) | [inline] |
| tControlledPTR< T >::~tControlledPTR | ( | ) | [inline] |
| tControlledPTR< T >::tCHECKED_PTR | ( | T | ) | [private] |
| void tControlledPTR< T >::AddRef | ( | void | ) | [inline, private] |
Definition at line 174 of file tSafePTR.h.
Referenced by tControlledPTR< eHalfEdge >::operator=(), and tControlledPTR< eHalfEdge >::tControlledPTR().

| void tControlledPTR< T >::Release | ( | ) | [inline, private] |
Definition at line 179 of file tSafePTR.h.
Referenced by tControlledPTR< eHalfEdge >::operator=(), and tControlledPTR< eHalfEdge >::~tControlledPTR().
00179 { 00180 if (target){ 00181 //#ifdef tSAFEPTR 00182 T *dummy=reinterpret_cast<T*>(target); 00183 target=NULL; 00184 dummy->Release(); 00185 //#else 00186 // target->Release(); 00187 // target=NULL; 00188 //#endif 00189 } 00190 }

| tControlledPTR<T>& tControlledPTR< T >::operator= | ( | T * | x | ) | [inline] |
| tControlledPTR<T>& tControlledPTR< T >::operator= | ( | const tControlledPTR< T > & | x | ) | [inline] |
Definition at line 209 of file tSafePTR.h.
00209 { 00210 if (target!=x.target){ 00211 Release(); 00212 target=x.target; 00213 AddRef(); 00214 } 00215 return *this; 00216 }
| T* tControlledPTR< T >::operator-> | ( | ) | const [inline] |
| T& tControlledPTR< T >::operator * | ( | ) | const [inline] |
| tControlledPTR< T >::operator T * | ( | ) | const [inline] |
| bool tControlledPTR< T >::operator== | ( | const T * | x | ) | const [inline] |
| bool tControlledPTR< T >::operator!= | ( | const T * | x | ) | const [inline] |
| bool tControlledPTR< T >::operator== | ( | T * | x | ) | const [inline] |
| bool tControlledPTR< T >::operator!= | ( | T * | x | ) | const [inline] |
| tControlledPTR< T >::operator bool | ( | ) | const [inline] |
| bool tControlledPTR< T >::operator! | ( | ) | const [inline] |
| bool tControlledPTR< T >::operator== | ( | const tControlledPTR< T > & | x | ) | const [inline] |
| bool tControlledPTR< T >::operator!= | ( | const tControlledPTR< T > & | x | ) | const [inline] |
| void tControlledPTR< T >::Destroy | ( | void | ) | [inline] |
Definition at line 268 of file tSafePTR.h.
00268 { 00269 if (target){ 00270 #ifdef tSAFEPTR 00271 T *dummy=(T *)target; 00272 target=NULL; 00273 delete dummy; 00274 #else 00275 delete target(); 00276 target=NULL; 00277 #endif 00278 } 00279 }
1.5.4