OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
Abstract base class for reference counted objects. More...
#include <RCObject.h>
Public Member Functions | |
int | addReference () const |
Increment reference count. More... | |
int | removeReference () const |
Decrement the reference count. More... | |
bool | isShared () const |
Test for sharing. More... | |
Protected Member Functions | |
RCObject () | |
Default constructor. More... | |
RCObject (const RCObject &) | |
Copy constructor. More... | |
virtual | ~RCObject ()=0 |
RCObject & | operator= (const RCObject &right) |
Private Attributes | |
int | refCount |
Abstract base class for reference counted objects.
Definition at line 40 of file RCObject.h.
|
inlineprotected |
Default constructor.
Definition at line 98 of file RCObject.h.
|
inlineprotected |
Copy constructor.
Definition at line 103 of file RCObject.h.
|
inlineprotectedpure virtual |
Definition at line 108 of file RCObject.h.
|
inline |
Increment reference count.
Definition at line 83 of file RCObject.h.
References refCount.
Referenced by Pointer< Object >::operator=(), and Pointer< Object >::unique().
|
inline |
Definition at line 112 of file RCObject.h.
|
inline |
|
mutableprivate |
Definition at line 76 of file RCObject.h.
Referenced by addReference(), isShared(), and removeReference().