- Your Widget Set For OpenGL
ufo::UCollectable Class Reference
Base class for all garbage collected objects.
More...
#include <ucollectable.hpp>
Inheritance diagram for ufo::UCollectable:
List of all members.
|
Public Member Functions |
void | setDynamic (bool b) |
bool | isDynamic () |
void | reference () const |
void | unreference () const |
unsigned int | getReferenceCount () const |
void * | operator new (std::size_t size) |
void | operator delete (void *p, std::size_t) |
Detailed Description
Base class for all garbage collected objects.
This class simply adds a reference counter and deletes the object if it was created dynamically and the reference count drops to 0.
An instance is created dynamically if it was created with the new operator. Please note: The reference count starts with a reference count, that means no garbage collection activated.
- Author:
- Johannes Schmidt
The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt