cAudio 2.3.0
3d Audio Engine
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
cAudio::IRefCounted Class Reference

Applies reference counting to certain cAudio objects. More...

#include <IRefCounted.h>

Inheritance diagram for cAudio::IRefCounted:
Inheritance graph
[legend]

Public Member Functions

virtual void grab ()
 Increments the reference count by one.
 
virtual bool drop ()
 Decrements the reference count by one. If it hits zero, this object is deleted.
 
int getReferenceCount () const
 Returns the current reference count of this object.
 

Protected Attributes

int RefCount
 

Detailed Description

Applies reference counting to certain cAudio objects.

Definition at line 12 of file IRefCounted.h.

Constructor & Destructor Documentation

◆ IRefCounted()

cAudio::IRefCounted::IRefCounted ( )
inline

Definition at line 15 of file IRefCounted.h.

◆ ~IRefCounted()

virtual cAudio::IRefCounted::~IRefCounted ( )
inlinevirtual

Definition at line 16 of file IRefCounted.h.

Member Function Documentation

◆ drop()

virtual bool cAudio::IRefCounted::drop ( )
inlinevirtual

Decrements the reference count by one. If it hits zero, this object is deleted.

Reimplemented in cAudio::cAudioSource.

Definition at line 25 of file IRefCounted.h.

Here is the caller graph for this function:

◆ getReferenceCount()

int cAudio::IRefCounted::getReferenceCount ( ) const
inline

Returns the current reference count of this object.

Definition at line 37 of file IRefCounted.h.

Here is the caller graph for this function:

◆ grab()

virtual void cAudio::IRefCounted::grab ( )
inlinevirtual

Increments the reference count by one.

Definition at line 19 of file IRefCounted.h.

Here is the caller graph for this function:

Member Data Documentation

◆ RefCount

int cAudio::IRefCounted::RefCount
protected

Definition at line 43 of file IRefCounted.h.


The documentation for this class was generated from the following file: