Chester
 All Classes Files Functions Variables Macros Pages
Public Member Functions | Private Attributes | List of all members
SharedDPtr Class Reference

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

#include <dptr_shared.h>

Public Member Functions

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

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 ( )
inlinevirtual

deletes a shared d-pointer

Member Function Documentation

virtual void attach ( )
inlinevirtual

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 ( )
inlinevirtual

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: