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

CountedPtr Class Template Reference

#include <CountedPtr.h>

List of all members.

Public Methods

 CountedPtr ()
 Create a CountedPtr.

 CountedPtr (T *ptr)
 Create a CountedPtr.

 CountedPtr (const CountedPtr &ptr)
 Create a CountedPtr.

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

Protected Attributes

T * _instance


Detailed Description

template<class T>
class ZThread::CountedPtr< T >

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-06-10T09:14:50-0400>
Version:
2.2.5
Thread-safe wrapper to implement a counted reference, this is limited in order to keep the lock allocated on the heap and to keep it from causing trouble with static destructors. This is immutable in the sense that it reassignment is not allowed. A CountedPtr will always refer to the same object.


Constructor & Destructor Documentation

virtual ~CountedPtr   [inline, virtual]
 

Destroy the CountedPtr and check for release of the implementation


Member Function Documentation

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

Get a reference to the underlying implementation

Reimplemented in Handle.

T* operator->   throw () [inline]
 

Get a reference to the underlying implementation

Reimplemented in Handle.


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