#include <smartptr.h>
Inheritance diagram for SmartPtr::__RefCounter:

Public Member Functions | |
| __RefCounter (T *ptr) | |
| Construct a reference counter for an object. | |
| virtual | ~__RefCounter () |
| Destroy the counter and its object. | |
Protected Member Functions | |
| virtual T * | GetPtr () const |
| Get a pointer to the object. | |
| virtual void | __DestroyRef () |
| Destroy the object. | |
Private Attributes | |
| T * | __m_ptr |
| Pointer to the reference counted object. | |
SmartPrt will automatically choose between its internal and the class' own implementation of IRefCount
| __RefCounter | ( | T * | ptr | ) | [inline] |
Construct a reference counter for an object.
| virtual ~__RefCounter | ( | ) | [inline, virtual] |
Destroy the counter and its object.
| virtual T* GetPtr | ( | ) | const [inline, protected, virtual] |
Get a pointer to the object.
| virtual void __DestroyRef | ( | ) | [inline, protected, virtual] |
T* __m_ptr [private] |
Pointer to the reference counted object.
1.5.1-p1