SmartPtr::__RefCounter Class Reference

Default IRefCount implementation used by SmartPtr. More...

#include <smartptr.h>

Inheritance diagram for SmartPtr::__RefCounter:

RefCount IRefCount List of all members.

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.

Detailed Description

template<class T>
class mxflib::SmartPtr< T >::__RefCounter

Default IRefCount implementation used by SmartPtr.

SmartPrt will automatically choose between its internal and the class' own implementation of IRefCount


Constructor & Destructor Documentation

__RefCounter ( T *  ptr  )  [inline]

Construct a reference counter for an object.

virtual ~__RefCounter (  )  [inline, virtual]

Destroy the counter and its object.


Member Function Documentation

virtual T* GetPtr (  )  const [inline, protected, virtual]

Get a pointer to the object.

virtual void __DestroyRef (  )  [inline, protected, virtual]

Destroy the object.

Called once all references have gone

Reimplemented from RefCount.


Member Data Documentation

T* __m_ptr [private]

Pointer to the reference counted object.


The documentation for this class was generated from the following file:
Generated on Mon Apr 2 15:21:02 2007 for MXFLib by  doxygen 1.5.1-p1