Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Bound_Ptr.h File Reference

#include "ace/pre.h"
#include "ace/OS.h"
#include "ace/Auto_Ptr.h"
#include "ace/Bound_Ptr.i"
#include "ace/post.h"

Include dependency graph for Bound_Ptr.h:

Include dependency graph

Compounds

class  ACE_Bound_Ptr_Counter
 An ACE_Bound_Ptr_Counter<ACE_LOCK> object encapsulates an object reference count. Do not use this class directly, use ACE_Strong_Bound_Ptr or ACE_Weak_Bound_Ptr instead. More...

class  ACE_Strong_Bound_Ptr
 This class implements support for a reference counted pointer. Assigning or copying instances of an ACE_Strong_Bound_Ptr will automatically increment the reference count of the underlying object. When the last instance of an ACE_Strong_Bound_Ptr that references a particular object is destroyed or overwritten, it will invoke delete on its underlying pointer. More...

class  ACE_Weak_Bound_Ptr
 This class implements support for a weak pointer that complements ACE_Strong_Bound_Ptr. Unlike ACE_Strong_Bound_Ptr, assigning or copying instances of an ACE_Weak_Bound_Ptr will not automatically increment the reference count of the underlying object. What ACE_Weak_Bound_Ptr does is preserve the knowledge that the object is in fact reference counted, and thus provides an alternative to raw pointers where non-ownership associations must be maintained. When the last instance of an ACE_Strong_Bound_Ptr that references a particular object is destroyed or overwritten, the corresponding ACE_Weak_Bound_Ptr instances are set to null. More...


Detailed Description

Bound_Ptr.h,v 4.2 2001/11/21 17:32:54 kircher_m Exp

Author:
Christopher Kohlhoff <chris@kohlhoff.com>

Generated on Sun Feb 17 16:44:29 2002 for ACE by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001