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

audiere::RefCounted Class Reference

#include <audiere.h>

Inheritance diagram for audiere::RefCounted:

Inheritance graph
[legend]
List of all members.

Public Methods

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

Protected Methods

 ~RefCounted ()

Constructor & Destructor Documentation

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

Protected so users of refcounted 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.

Definition at line 51 of file audiere.h.


Member Function Documentation

virtual void ADR_CALL audiere::RefCounted::ref   [pure virtual]
 

Add a reference to the internal reference count.

Implemented in audiere::RefImplementation< SampleSource >, audiere::RefImplementation< audiere::SampleSource >, audiere::RefImplementation< SampleBuffer >, audiere::RefImplementation< SoundEffect >, audiere::RefImplementation< AudioDevice >, audiere::RefImplementation< File >, and audiere::RefImplementation< OutputStream >.

virtual void ADR_CALL audiere::RefCounted::unref   [pure virtual]
 

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

Implemented in audiere::RefImplementation< SampleSource >, audiere::RefImplementation< audiere::SampleSource >, audiere::RefImplementation< SampleBuffer >, audiere::RefImplementation< SoundEffect >, audiere::RefImplementation< AudioDevice >, audiere::RefImplementation< File >, and audiere::RefImplementation< OutputStream >.


The documentation for this class was generated from the following file:
Generated on Sat Oct 12 01:44:21 2002 for audiere by doxygen1.2.17