#include <tSafePTR.h>
Public Member Functions | |
tJUST_CONTROLLED_PTR (T *x) | |
tJUST_CONTROLLED_PTR (const tCheckedPTR< T > &x) | |
tJUST_CONTROLLED_PTR (const tJUST_CONTROLLED_PTR< T > &x) | |
tJUST_CONTROLLED_PTR () | |
tJUST_CONTROLLED_PTR< T > & | operator= (T *x) |
tJUST_CONTROLLED_PTR< T > & | operator= (const tJUST_CONTROLLED_PTR< 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 tJUST_CONTROLLED_PTR< T > &x) const |
bool | operator!= (const tJUST_CONTROLLED_PTR< T > &x) const |
void | Destroy () |
~tJUST_CONTROLLED_PTR () | |
Private Member Functions | |
void | AddRef () |
void | Release () |
Private Attributes | |
T * | target |
Definition at line 287 of file tSafePTR.h.
tJUST_CONTROLLED_PTR< T >::tJUST_CONTROLLED_PTR | ( | T * | x | ) | [inline] |
tJUST_CONTROLLED_PTR< T >::tJUST_CONTROLLED_PTR | ( | const tCheckedPTR< T > & | x | ) | [inline] |
tJUST_CONTROLLED_PTR< T >::tJUST_CONTROLLED_PTR | ( | const tJUST_CONTROLLED_PTR< T > & | x | ) | [inline] |
tJUST_CONTROLLED_PTR< T >::tJUST_CONTROLLED_PTR | ( | ) | [inline] |
tJUST_CONTROLLED_PTR< T >::~tJUST_CONTROLLED_PTR | ( | ) | [inline] |
void tJUST_CONTROLLED_PTR< T >::AddRef | ( | void | ) | [inline, private] |
Definition at line 290 of file tSafePTR.h.
Referenced by tJUST_CONTROLLED_PTR< nNetObject >::operator=(), and tJUST_CONTROLLED_PTR< nNetObject >::tJUST_CONTROLLED_PTR().
void tJUST_CONTROLLED_PTR< T >::Release | ( | ) | [inline, private] |
Definition at line 295 of file tSafePTR.h.
Referenced by nNOInitialisator< T >::Init(), tJUST_CONTROLLED_PTR< nNetObject >::operator=(), and tJUST_CONTROLLED_PTR< nNetObject >::~tJUST_CONTROLLED_PTR().
00295 { 00296 if (target){ 00297 T *dummy=target; 00298 target=NULL; 00299 dummy->Release(); 00300 } 00301 }
tJUST_CONTROLLED_PTR<T>& tJUST_CONTROLLED_PTR< T >::operator= | ( | T * | x | ) | [inline] |
Definition at line 311 of file tSafePTR.h.
Referenced by tJUST_CONTROLLED_PTR< nNetObject >::operator=().
00311 { 00312 if (target!=x){ 00313 Release(); 00314 target=x; 00315 AddRef(); 00316 } 00317 return *this; 00318 }
tJUST_CONTROLLED_PTR<T>& tJUST_CONTROLLED_PTR< T >::operator= | ( | const tJUST_CONTROLLED_PTR< T > & | x | ) | [inline] |
T* tJUST_CONTROLLED_PTR< T >::operator-> | ( | ) | const [inline] |
T& tJUST_CONTROLLED_PTR< T >::operator * | ( | ) | const [inline] |
tJUST_CONTROLLED_PTR< T >::operator T * | ( | ) | const [inline] |
bool tJUST_CONTROLLED_PTR< T >::operator== | ( | const T * | x | ) | const [inline] |
bool tJUST_CONTROLLED_PTR< T >::operator!= | ( | const T * | x | ) | const [inline] |
bool tJUST_CONTROLLED_PTR< T >::operator== | ( | const tJUST_CONTROLLED_PTR< T > & | x | ) | const [inline] |
bool tJUST_CONTROLLED_PTR< T >::operator!= | ( | const tJUST_CONTROLLED_PTR< T > & | x | ) | const [inline] |
void tJUST_CONTROLLED_PTR< T >::Destroy | ( | void | ) | [inline] |
T* tJUST_CONTROLLED_PTR< T >::target [private] |
Definition at line 288 of file tSafePTR.h.
Referenced by tJUST_CONTROLLED_PTR< nNetObject >::AddRef(), tJUST_CONTROLLED_PTR< nNetObject >::Destroy(), tJUST_CONTROLLED_PTR< nNetObject >::operator *(), tJUST_CONTROLLED_PTR< uBind >::operator uBind *(), tJUST_CONTROLLED_PTR< nNetObject >::operator!=(), tJUST_CONTROLLED_PTR< nNetObject >::operator->(), tJUST_CONTROLLED_PTR< nNetObject >::operator=(), tJUST_CONTROLLED_PTR< nNetObject >::operator==(), and tJUST_CONTROLLED_PTR< nNetObject >::Release().