Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCRefPtrAttacher Class Template Reference

Template class for attaching to a refcounted pointer without detaching on destruction. More...

#include <mcllib/MCRefPtr.h>

Inheritance diagram for MCRefPtrAttacher:

MCRefPtr MCRefCountAccessorTmpl MCRefCountAccessorBase List of all members.

Public Member Functions

 MCRefPtrAttacher (T *pHdl)

Detailed Description

template<typename T, MCThreadModel::EModel MODEL = MCThreadModel::THRMODELMULTI>
class mcllib::MCRefPtrAttacher< T, MODEL >

Template class for attaching to a refcounted pointer without detaching on destruction.

This is a useful and simple way of incrementing a reference count. However care should be taken to ensure that a corresponding MCRefPtrDetacher is used to decrement the count when the object is no longer required.


Generated on Wed Jan 12 19:05:49 2005 for MCLLIB by  doxygen 1.3.9.1