Workspace 6.21.5
|
Template class for smart pointers-to-T objects (requires modification to T). More...
#include <Workspace/Application/LanguageUtils/refcount.h>
Public Member Functions | |
RefCountedObjectPtr (const RefCountedObjectPtr &rhs) | |
RefCountedObjectPtr (T *realPtr=0) | |
~RefCountedObjectPtr () | |
T & | operator* () const |
T * | operator-> () const |
RefCountedObjectPtr & | operator= (const RefCountedObjectPtr &rhs) |
T must support the RefCountedObject interface, hence RefCcountedObjectPtr only works for objects that have been modified for use with reference counting.
Based on Item 29 in "More Effective C++", Scott Meyers.
|
inline |
realPtr | The object to assign to this reference counted pointer. |
|
inline |
rhs | The object to hold a reference count for. |
|
inline |
|
inline |
|
inline |
|
inline |
rhs | The object to assign to this one. The reference count for the previously held object is decremented. |