#include <gltext.h>
Inheritance diagram for gltext::RefCounted:
Public Methods | |
virtual void GLTEXT_CALL | ref ()=0 |
virtual void GLTEXT_CALL | unref ()=0 |
Protected Methods | |
~RefCounted () |
This class was originally written by Chad Austin for the audiere project and released under the LGPL.
|
Protected so users of recounted classes don't use std::auto_ptr or the delete operator. Interfaces that derive from RefCounted should define an inline, empty, protected destructor as well. |
|
Add a reference to this object. This will increment the internal reference count. |
|
Remove a reference from this object. This will decrement the internal reference count. When this count reaches 0, the object is destroyed. |