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 |
Base class of shared d-pointers.
Use in conjunction with DECLARE_SHARED_DPTR and DEFINE_SHARED_DPTR
|
inline |
instantiates a shared d-pointer
|
inlinevirtual |
deletes a shared d-pointer
|
inlinevirtual |
called by the wrapper to attach to a new instance
|
inline |
called by the wrapper to enable copy-on-write logic
|
inlinevirtual |
called by the wrapper to detach from an instance
|
private |
1.8.8