PropaneMemoryObject Class Reference

An object designed to be tracked by its own internal memory manager and garbage collector. Ideal for many game tasks, particularly PropaneSharedPointer. More...

#include <PropaneMemoryObject.h>

Inheritance diagram for PropaneMemoryObject:

PropaneFunctor PropaneManagedObjectFunctor< T > PropaneObjectFunctor< T > List of all members.

Public Member Functions

void release ()
 Remove a reference to this object, and place it in the dead pile if there are no outstanding references.
void addRef ()
 Add a reference to this object.
virtual unsigned long size ()=0
 The size in bytes of memory used (unimplemented).

Static Public Member Functions

static void collectGarbage ()
 Remove the dead objects from the pile. Warning: May be slow.
static void collectAll (bool warnings=true)
 Remove all objects from memory tracking. Provide true to warn you if there are any live objects remaining (i.e. memory leaks).

Protected Member Functions

 PropaneMemoryObject ()
 Basic constructor for this object.
virtual ~PropaneMemoryObject ()
 Basic destructor for this object.

Detailed Description

An object designed to be tracked by its own internal memory manager and garbage collector. Ideal for many game tasks, particularly PropaneSharedPointer.


The documentation for this class was generated from the following file:
Generated on Sun Jan 14 16:49:11 2007 for Propane Injector by  doxygen 1.4.6