#include <Object.h>
Public Member Functions | |
void | retain (void) const |
Increment the reference count by one. | |
void | release (void) const |
Decrement the reference count by one. | |
Protected Member Functions | |
Object (void) | |
virtual | ~Object (void) |
Static Protected Member Functions | |
static void * | operator new (size_t size) |
Overide new so all Objects use ALLOC(). | |
static void | operator delete (void *ptr) |
Overide delete so all Objects use DEALLOC(). |
Derived classes should supply a static create() function to allocate new objects.
Constructors and destructors should be protected so users must go through the create/retain/release functions.
Definition at line 34 of file Object.h.
Object::Object | ( | void | ) | [protected] |
virtual Object::~Object | ( | void | ) | [protected, virtual] |
void Object::retain | ( | void | ) | const |
void Object::release | ( | void | ) | const |
When the reference count goes to zero the object gets deleted.
static void* Object::operator new | ( | size_t | size | ) | [static, protected] |
static void Object::operator delete | ( | void * | ptr | ) | [static, protected] |
LizardTech |