#include <Object.h>
Inheritance diagram for base::Object:
Public Member Functions | |
Object () | |
Constructor: initialize the reference counter. | |
virtual | ~Object () |
Destructor. | |
void | addReference () |
Add a reference to this object. | |
void | dropReference () |
Remove a reference to this object. | |
bool | isMutable () const |
This is useful to know if this object may be modified safely. | |
Protected Member Functions | |
virtual void | destroy () |
Wrapper to delete. | |
Private Attributes | |
unsigned int | refCounter |
reference counter |
The reference counting is done by Object.
|
Constructor: initialize the reference counter.
|
|
Destructor.
|
|
Add a reference to this object. Use carefully because this will affect deallocation. |
|
Wrapper to delete. It is virtual in case we have objects that are not deallocated by delete, in which case, the method is overriden. Reimplemented in base::Array< X >. |
|
Remove a reference to this object. Use carefully because this will affect deallocation. |
|
This is useful to know if this object may be modified safely.
|
|
reference counter
|