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

MCRefCountWrap Class Template Reference

Template class to put a MCRefCount wrapper around a class. More...

#include <mcllib/MCRefCount.h>

Inheritance diagram for MCRefCountWrap:

MCRefCount List of all members.

Public Member Functions

 MCRefCountWrap (copy_param_type data)
 Initialize from an item of the template type.
 MCRefCountWrap ()
 Default constructor.
 operator T & ()
 obtain a reference to the item

Detailed Description

template<typename T>
class mcllib::MCRefCountWrap< T >

Template class to put a MCRefCount wrapper around a class.

The RefCountAccessor friend is the only thing which can access the reference count. This is used to implement smart pointers.


Constructor & Destructor Documentation

MCRefCountWrap  ) 
 

Default constructor.

Reference count is zero


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