#include <DynWeakRef.hpp>
Public Member Functions | |
DynWeakRef () | |
DynWeakRef (T *pt) | |
DynWeakRef (DynWeakRef &dop) | |
DynWeakRef & | operator= (T *pt) |
DynWeakRef & | operator= (DynWeakRef< T > &dop) |
DynWeakRef & | Assign (T *pt) |
operator T * () | |
operator T & () | |
T & | operator* () |
T * | operator-> () |
T * | Get () |
bool | IsOk () |
bool | Release () |
Protected Member Functions | |
bool | InternalAssign (T *pt) |
void | InternalRelease () |
virtual bool docall | OnNotify (NotifierI *pni, int evt, NotifDataI *pnd) |
Protected Attributes | |
T * | m_pt |
DynWeakRef< T >::DynWeakRef | ( | ) | [inline, explicit] |
Constructor. Initialized to empty state.
DynWeakRef< T >::DynWeakRef | ( | T * | pt | ) | [inline, explicit] |
Constructor, one argument.
pt | The DynObj we want to track. Should implement NotifierI. |
DynWeakRef< T >::DynWeakRef | ( | DynWeakRef< T > & | dop | ) | [inline, explicit] |
Constructor, one argument.
dop | The DynObj we want to track. Should implement NotifierI. |
DynWeakRef& DynWeakRef< T >::operator= | ( | T * | pt | ) | [inline] |
Assignment operator.
pt | The DynObj we want to track. Should implement NotifierI. |
DynWeakRef& DynWeakRef< T >::operator= | ( | DynWeakRef< T > & | dop | ) | [inline] |
Assignment operator.
dop | The DynObj we want to track. Should implement NotifierI. |
DynWeakRef& DynWeakRef< T >::Assign | ( | T * | pt | ) | [inline] |
Assignment function.
pt | The DynObj we want to track. Should implement NotifierI. |
DynWeakRef< T >::operator T * | ( | ) | [inline] |
Access raw pointer.
DynWeakRef< T >::operator T & | ( | ) | [inline] |
Access as reference.
T& DynWeakRef< T >::operator* | ( | ) | [inline] |
Access as reference.
T* DynWeakRef< T >::operator-> | ( | ) | [inline] |
Access raw pointer.
T* DynWeakRef< T >::Get | ( | ) | [inline] |
Access raw pointer.
bool DynWeakRef< T >::IsOk | ( | ) | [inline] |
Do we have an object now?
bool DynWeakRef< T >::Release | ( | ) | [inline] |
Release our tracking of this object