#include <audiere.h>
Inheritance diagram for audiere::RefCounted:

Public Methods | |
| virtual void ADR_CALL | ref ()=0 |
| virtual void ADR_CALL | unref ()=0 |
Protected Methods | |
| ~RefCounted () | |
|
|
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. |
|
|
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 >. |
|
|
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 >. |
1.2.17