Workspace 6.21.5
|
Template class for reference-counted pointers-to-T (T requires no special modification). More...
#include <Workspace/Application/LanguageUtils/refcount.h>
Public Member Functions | |
RefCountedPtr (const RefCountedPtr &rhs) | |
RefCountedPtr (T *realPtr=0) | |
~RefCountedPtr () | |
T & | operator* () const |
T * | operator-> () const |
RefCountedPtr & | operator= (const RefCountedPtr &rhs) |
This class differs from RefCountedObjectPtr in that it does not require that T is derived from RefCountedObject. Instead, RefCountedPtr uses its own proxy class to take care of this.
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. |