Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

gltext::RefCounted Class Reference

#include <gltext.h>

Inheritance diagram for gltext::RefCounted:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual void GLTEXT_CALL ref ()=0
virtual void GLTEXT_CALL unref ()=0

Protected Methods

 ~RefCounted ()

Detailed Description

Base class for classes the manage their own memory using reference counting.

This class was originally written by Chad Austin for the audiere project and released under the LGPL.


Constructor & Destructor Documentation

gltext::RefCounted::~RefCounted   [inline, protected]
 

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.


Member Function Documentation

virtual void GLTEXT_CALL gltext::RefCounted::ref   [pure virtual]
 

Add a reference to this object. This will increment the internal reference count.

virtual void GLTEXT_CALL gltext::RefCounted::unref   [pure virtual]
 

Remove a reference from this object. This will decrement the internal reference count. When this count reaches 0, the object is destroyed.


The documentation for this class was generated from the following file:
Generated on Mon Aug 4 22:04:32 2003 for GLText by doxygen1.3-rc1