Base class of shared d-pointers. More...
#include <dptr_shared.h>
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 |
Base class of shared d-pointers.
Use in conjunction with DECLARE_SHARED_DPTR and DEFINE_SHARED_DPTR
| SharedDPtr | ( | ) | [inline] |
instantiates a shared d-pointer
| virtual ~SharedDPtr | ( | ) | [inline, virtual] |
deletes a shared d-pointer
| 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
int cnt [private] |
1.7.1