|
GeoModel - GeoModelCore
|
This is a base class for objects whose memory is managed through reference counting. Reference-counted objects can only be created using operator new, the cannot be created on the stack. More...
#include <RCBase.h>
Public Member Functions | |
| void | ref () const |
| void | unref () const |
| unsigned int | refCount () const |
Private Member Functions | |
| RCBase (const RCBase &right) | |
| RCBase & | operator= (const RCBase &right) |
Private Attributes | |
| std::atomic< unsigned > | m_count |
This is a base class for objects whose memory is managed through reference counting. Reference-counted objects can only be created using operator new, the cannot be created on the stack.
The methods ref() and unref() can be called to increase and decrease the reference count of an object. When the reference count decreases to zero, the object deletes itself
1.8.11