|
LLVM
3.7.0
|
RefCountedBase - A generic base class for objects that wish to have their lifetimes managed using reference counts. More...
#include <IntrusiveRefCntPtr.h>
Public Member Functions | |
| RefCountedBase () | |
| RefCountedBase (const RefCountedBase &) | |
| void | Retain () const |
| void | Release () const |
RefCountedBase - A generic base class for objects that wish to have their lifetimes managed using reference counts.
Classes subclass RefCountedBase to obtain such functionality, and are typically handled with IntrusiveRefCntPtr "smart pointers" (see below) which automatically handle the management of reference counts. Objects that subclass RefCountedBase should not be allocated on the stack, as invoking "delete" (which is called when the reference count hits 0) on such objects is an error.
Definition at line 44 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 48 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 49 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 52 of file IntrusiveRefCntPtr.h.
|
inline |
Definition at line 51 of file IntrusiveRefCntPtr.h.
1.8.6