Main Page   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members  

Handle Class Template Reference

#include <Handle.h>

Inheritance diagram for Handle:

CountedPtr< Runnable > List of all members.

Public Methods

 Handle (T *ptr)
 Create a Handle.

 Handle (const Handle &h)
 Create a Handle.

virtual ~Handle () throw ()
T * operator-> () throw ()
const T * operator-> () const throw ()

Detailed Description

template<typename T>
class ZThread::Handle< T >

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-06-10T09:15:24-0400>
Version:
2.2.5
Handles are used to reference count Runnable objects using a CountedPtr. Handles are immutable, once created you cannot change the object they are assigned to. This helps to significantly reduce any overhead involved in managing the reference count. If assignment is desireable, a user could develop a smart pointer class that work with Handles.

Handles can only be used with Runnable classes. The compiler will not allow you use a Handle with a class that does not inherit from Runnable.


The documentation for this class was generated from the following file:
Generated on Mon Jun 10 22:44:45 2002 for ZThread by doxygen1.2.15