Public Member Functions | Private Attributes

SharedDPtr Class Reference

Base class of shared d-pointers. More...

#include <dptr_shared.h>

List of all members.

Public Member Functions

 SharedDPtr ()
 instantiates a shared d-pointer
virtual ~SharedDPtr ()
 deletes a shared d-pointer
virtual void attach ()
 called by the wrapper to attach to a new instance
virtual void detach ()
 called by the wrapper to detach from an instance
int currentRefCount () const
 called by the wrapper to enable copy-on-write logic

Private Attributes

int cnt

Detailed Description

Base class of shared d-pointers.

Use in conjunction with DECLARE_SHARED_DPTR and DEFINE_SHARED_DPTR


Constructor & Destructor Documentation

SharedDPtr (  )  [inline]

instantiates a shared d-pointer

virtual ~SharedDPtr (  )  [inline, virtual]

deletes a shared d-pointer


Member Function Documentation

virtual void attach (  )  [inline, virtual]

called by the wrapper to attach to a new instance

int currentRefCount (  )  const [inline]

called by the wrapper to enable copy-on-write logic

virtual void detach (  )  [inline, virtual]

called by the wrapper to detach from an instance


Member Data Documentation

int cnt [private]

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Defines