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.


Member Function Documentation

const T* operator->   const throw () [inline]
 

Get a reference to the underlying implementation

Reimplemented from CountedPtr< Runnable >.

T* operator->   throw () [inline]
 

Get a reference to the underlying implementation

Reimplemented from CountedPtr< Runnable >.


The documentation for this class was generated from the following file:
Generated on Tue Aug 27 07:43:12 2002 for ZThread by doxygen1.2.17