iopc::CountedPtr< X > Class Template Reference
[iopccommon]

A simple reference counted pointer. More...

#include <countedPtr.h>

List of all members.

Public Member Functions

 CountedPtr (X *p=0, bool allowDelete=true)
 Allocates a new counter.


Detailed Description

template<class X>
class iopc::CountedPtr< X >

A simple reference counted pointer.

This is a non-intrusive implementation that allocates an additional int and pointer for every counted object. Not thread-safe.


Constructor & Destructor Documentation

template<class X>
iopc::CountedPtr< X >::CountedPtr ( X *  p = 0,
bool  allowDelete = true 
) [inline, explicit]

Allocates a new counter.

Parameters:
p Referenced object
allowDelete If the reference count drops to zero, this parameter determines if p can be automatically deallocated or not.


The documentation for this class was generated from the following file:

Generated on Tue Apr 14 16:46:31 2009 for IOPC 2 by  doxygen 1.5.6