Reference counted object base class.
More...
#include <object.h>
Reference counted object base class.
Definition at line 9 of file object.h.
◆ Object() [1/2]
Default constructor.
Definition at line 12 of file object.h.
◆ Object() [2/2]
Object::Object |
( |
const Object & |
| ) |
|
|
inline |
Copy constructor.
Definition at line 15 of file object.h.
◆ ~Object()
virtual Object::~Object |
( |
| ) |
|
|
inlineprotectedvirtual |
Virtual protected deconstructor. (Will only be called by ref)
Definition at line 44 of file object.h.
◆ decRef()
void Object::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 29 of file object.h.
◆ getRefCount()
int Object::getRefCount |
( |
| ) |
const |
|
inline |
Return the current reference count.
Definition at line 18 of file object.h.
◆ incRef()
void Object::incRef |
( |
| ) |
const |
|
inline |
Increase the object's reference count by one.
Definition at line 21 of file object.h.
◆ toString()
virtual std::string Object::toString |
( |
| ) |
const |
|
pure virtual |
◆ m_refCount
std::atomic<int> Object::m_refCount {0} |
|
mutableprivate |
The documentation for this class was generated from the following file: