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

IntrusivePtr Class Template Reference

#include <IntrusivePtr.h>

Inheritance diagram for IntrusivePtr:

NonCopyable List of all members.

Public Methods

 IntrusivePtr ()
virtual ~IntrusivePtr ()
void addReference ()
void delReference ()

Detailed Description

template<typename T, class LockType, int InitialCount = 1>
class ZThread::IntrusivePtr< T, LockType, InitialCount >

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-05-29T16:01:59-0400>
Version:
2.2.0
This template creates an intrusively reference counted object an IntrusivePtr starts out with a 1 count, which is updated as references are added and removed. When the reference count drops to 0, the IntrusivePtr will delete itself.


Constructor & Destructor Documentation

IntrusivePtr   [inline]
 

Create an IntrusivePtr with a count.

virtual ~IntrusivePtr   [inline, virtual]
 

Destry an IntrusivePtr


Member Function Documentation

void addReference   [inline]
 

Add a reference to this object, it will take one more call to delReference() for it to be deleted.

void delReference   [inline]
 

Remove a reference from this object, if the reference count drops to 0 as a result, the object deletes itself.


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