ZThread::IntrusivePtr< T, LockType > Class Template Reference

#include <IntrusivePtr.h>

Inheritance diagram for ZThread::IntrusivePtr< T, LockType >:

ZThread::NonCopyable ZThread::ThreadImpl List of all members.

Public Member Functions

 IntrusivePtr (size_t InitialCount=1)
virtual ~IntrusivePtr ()
void addReference ()
void delReference ()

Detailed Description

template<typename T, class LockType>
class ZThread::IntrusivePtr< T, LockType >

Author:
Eric Crahen <http://www.code-foo.com>
Date:
<2003-07-16T17:54:23-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

template<typename T, class LockType>
ZThread::IntrusivePtr< T, LockType >::IntrusivePtr ( size_t  InitialCount = 1  )  [inline]

Create an IntrusivePtr with a count.

template<typename T, class LockType>
virtual ZThread::IntrusivePtr< T, LockType >::~IntrusivePtr (  )  [inline, virtual]

Destroy an IntrusivePtr


Member Function Documentation

template<typename T, class LockType>
void ZThread::IntrusivePtr< T, LockType >::addReference (  )  [inline]

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

template<typename T, class LockType>
void ZThread::IntrusivePtr< T, LockType >::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 Wed Aug 30 03:27:49 2006 for SWG EMU by  doxygen 1.4.7