#include <lugre_smartptr.h>


Public Types | |
| enum | { kDefaultTargetDestroyedEventCode = 255 } |
Public Member Functions | |
| cSmartPtr (_T *target=0, const size_t iTargetDestroyedEventCode=kDefaultTargetDestroyedEventCode) | |
| virtual | ~cSmartPtr () |
| void | SmartPtr_SetTarget (_T *newtarget) |
| const cSmartPtr< _T > & | operator= (cSmartPtr< _T > othersmartptr) |
| const cSmartPtr< _T > & | operator= (_T *newtarget) |
| _T * | operator* () |
| void | SmartPtr_TargetDestroyed () |
Public Attributes | |
| size_t | miTargetDestroyedEventCode |
Private Attributes | |
| _T * | target |
Definition at line 60 of file lugre_smartptr.h.
| anonymous enum |
| Lugre::cSmartPtr< _T >::cSmartPtr | ( | _T * | target = 0, |
|
| const size_t | iTargetDestroyedEventCode = kDefaultTargetDestroyedEventCode | |||
| ) | [inline] |
Definition at line 64 of file lugre_smartptr.h.
| virtual Lugre::cSmartPtr< _T >::~cSmartPtr | ( | ) | [inline, virtual] |
Definition at line 69 of file lugre_smartptr.h.
| void Lugre::cSmartPtr< _T >::SmartPtr_SetTarget | ( | _T * | newtarget | ) | [inline] |
Definition at line 73 of file lugre_smartptr.h.
Referenced by Lugre::cSmartPtr< Lugre::cListener >::operator=().
| const cSmartPtr<_T>& Lugre::cSmartPtr< _T >::operator= | ( | cSmartPtr< _T > | othersmartptr | ) | [inline] |
Definition at line 78 of file lugre_smartptr.h.
| const cSmartPtr<_T>& Lugre::cSmartPtr< _T >::operator= | ( | _T * | newtarget | ) | [inline] |
Definition at line 79 of file lugre_smartptr.h.
| _T* Lugre::cSmartPtr< _T >::operator* | ( | ) | [inline] |
Definition at line 80 of file lugre_smartptr.h.
| void Lugre::cSmartPtr< _T >::SmartPtr_TargetDestroyed | ( | ) | [inline, virtual] |
only called from cSmartPointable's destructor no need to unregister here, would even break iterator in cSmartPointable's destructor
Implements Lugre::cISmartPtr.
Definition at line 84 of file lugre_smartptr.h.
| size_t Lugre::cSmartPtr< _T >::miTargetDestroyedEventCode |
Definition at line 62 of file lugre_smartptr.h.
Referenced by Lugre::cSmartPtr< Lugre::cListener >::SmartPtr_TargetDestroyed().
_T* Lugre::cSmartPtr< _T >::target [private] |
Definition at line 89 of file lugre_smartptr.h.
Referenced by Lugre::cSmartPtr< Lugre::cListener >::cSmartPtr(), Lugre::cSmartPtr< Lugre::cListener >::operator*(), Lugre::cSmartPtr< Lugre::cListener >::SmartPtr_SetTarget(), Lugre::cSmartPtr< Lugre::cListener >::SmartPtr_TargetDestroyed(), and Lugre::cSmartPtr< Lugre::cListener >::~cSmartPtr().
1.5.6