Lugre::cSmartPointable Class Reference

cSmartPointable is cListenable for death event More...

#include <lugre_smartptr.h>

Inheritance diagram for Lugre::cSmartPointable:

Inheritance graph
[legend]
Collaboration diagram for Lugre::cSmartPointable:

Collaboration graph
[legend]

List of all members.

Public Types

enum  { kDefaultDeathEventCode = 255 }

Public Member Functions

 cSmartPointable (const size_t iDeathEventCode=kDefaultDeathEventCode)
virtual ~cSmartPointable ()
void ReleaseAllSmartPtr ()
void RegisterSmartPtr (cISmartPtr *ptr)
void UnRegisterSmartPtr (cISmartPtr *ptr)
int CountSmartPtrs ()

Public Attributes

size_t miDeathEventCode

Private Attributes

std::list< cISmartPtr * > mlPtr


Detailed Description

cSmartPointable is cListenable for death event

Definition at line 93 of file lugre_smartptr.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
kDefaultDeathEventCode 

Definition at line 95 of file lugre_smartptr.h.


Constructor & Destructor Documentation

Lugre::cSmartPointable::cSmartPointable ( const size_t  iDeathEventCode = kDefaultDeathEventCode  )  [inline]

Definition at line 98 of file lugre_smartptr.h.

virtual Lugre::cSmartPointable::~cSmartPointable (  )  [inline, virtual]


Member Function Documentation

void Lugre::cSmartPointable::ReleaseAllSmartPtr (  )  [inline]

Definition at line 103 of file lugre_smartptr.h.

References mlPtr, and PROFILE.

Referenced by ~cSmartPointable().

void Lugre::cSmartPointable::RegisterSmartPtr ( cISmartPtr ptr  )  [inline]

Definition at line 110 of file lugre_smartptr.h.

References assert, mlPtr, and PROFILE.

void Lugre::cSmartPointable::UnRegisterSmartPtr ( cISmartPtr ptr  )  [inline]

Definition at line 114 of file lugre_smartptr.h.

References assert, mlPtr, and PROFILE.

int Lugre::cSmartPointable::CountSmartPtrs (  )  [inline]

Definition at line 123 of file lugre_smartptr.h.

References mlPtr.


Member Data Documentation

Definition at line 96 of file lugre_smartptr.h.

Referenced by ~cSmartPointable().


The documentation for this class was generated from the following file:

Generated on Wed Feb 8 06:00:22 2012 for cpp by  doxygen 1.5.6