Reference counted object base class.
More...
#include <object.h>
|
| virtual | ~Object () |
| | Virtual protected deconstructor. (Will only be called by ref) More...
|
| |
Reference counted object base class.
Definition at line 8 of file object.h.
◆ Object() [1/2]
Default constructor.
Definition at line 11 of file object.h.
◆ Object() [2/2]
Copy constructor.
Definition at line 14 of file object.h.
◆ ~Object()
Virtual protected deconstructor. (Will only be called by ref)
Definition at line 41 of file object.h.
◆ decRef()
| void decRef |
( |
bool |
dealloc = true | ) |
const |
|
inline |
Decrease the reference count of the object and possibly deallocate it.
The object will automatically be deallocated once the reference count reaches zero.
Definition at line 28 of file object.h.
◆ getRefCount()
| int getRefCount |
( |
| ) |
const |
|
inline |
Return the current reference count.
Definition at line 17 of file object.h.
◆ incRef()
Increase the object's reference count by one.
Definition at line 20 of file object.h.
◆ toString()
| virtual std::string toString |
( |
| ) |
const |
|
pure virtual |
◆ m_refCount
| std::atomic<int> m_refCount { 0 } |
|
mutableprivate |
The documentation for this class was generated from the following file: