Does not inherit
#include rwsf/core/RefCountingObject.h
RefCountingObject is a base class for classes that must maintain a thread-safe reference count.
virtual ~RefCountingObject(void);
Destructor.
void addRef(void) const;
Increments the reference count. A call to releaseRef() should be made for each call to addRef(), otherwise a memory leak may occur. This method should only be used with objects allocated on the heap.
void releaseRef(void) const;
Decrements the reference count. If the reference count reaches 0, this object is deleted. This method should only be used with objects allocated on the heap. This method should not be called before calling addRef(), and should be called once for each call to addRef().
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.