#include <audiere.h>
Inheritance diagram for audiere::RefCounted:
Public Member Functions | |
virtual void | ref ()=0 |
virtual void | unref ()=0 |
Protected Member Functions | |
~RefCounted () |
Definition at line 72 of file audiere.h.
|
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. |
|
|
Remove a reference from the internal reference count. When this reaches 0, the object is destroyed. Implemented in audiere::RefImplementation< SampleSource >, audiere::RefImplementation< MIDIStream >, audiere::RefImplementation< SampleBuffer >, audiere::RefImplementation< StopEvent >, audiere::RefImplementation< SoundEffect >, audiere::RefImplementation< AudioDevice >, audiere::RefImplementation< File >, audiere::RefImplementation< LoopPointSource >, audiere::RefImplementation< MIDIDevice >, audiere::RefImplementation< CDDevice >, and audiere::RefImplementation< OutputStream >. |