tCheckedPTRConst< T > Class Template Reference

#include <tSafePTR.h>

Inheritance diagram for tCheckedPTRConst< T >:

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

Collaboration graph
[legend]

List of all members.

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


Detailed Description

template<class T>
class tCheckedPTRConst< T >

Definition at line 93 of file tSafePTR.h.


Member Typedef Documentation

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

Definition at line 94 of file tSafePTR.h.


Constructor & Destructor Documentation

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

Definition at line 96 of file tSafePTR.h.

00096 :tCheckedPTRBase(NULL){};

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

Definition at line 97 of file tSafePTR.h.

00097 :tCheckedPTRBase(reinterpret_cast<void *>(x)){};

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

Definition at line 98 of file tSafePTR.h.

00098 :tCheckedPTRBase(x.target){};

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

Definition at line 99 of file tSafePTR.h.

00099 :tCheckedPTRBase(x.operator->()){};

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

Definition at line 100 of file tSafePTR.h.

00100 {};


Member Function Documentation

template<class T>
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;}

Here is the call graph for this function:

template<class T>
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;}

Here is the call graph for this function:

template<class T>
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;}

Here is the call graph for this function:

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

Definition at line 109 of file tSafePTR.h.

References tCheckedPTRBase::target.

00109 {return target;}

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

Definition at line 110 of file tSafePTR.h.

References tCheckedPTRBase::target.

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

template<class T>
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);}

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

Definition at line 114 of file tSafePTR.h.

References tCheckedPTRBase::target.

00114 {return target==x;}

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

Definition at line 115 of file tSafePTR.h.

References tCheckedPTRBase::target.

00115 {return target!=x;}

template<class T>
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     }


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