AVBlocks for C++  3.0
Audio and Video Software Development Kit
Loading...
Searching...
No Matches
Reference Class Referenceabstract

Base class for all objects that require reference management. More...

#include <reference.h>

Inheritance diagram for Reference:
Stream Block MediaPin MediaSocket Parameter ParameterList TranscoderCallback Hardware MediaBuffer MediaSample MetaAttribute MetaAttributeList MetaPicture MetaPictureList Metadata StreamInfo StreamInfoEnum ErrorInfo LicenseInfo

Public Member Functions

virtual int32_t release () const =0
 Releases the instance.
 
virtual int32_t retain () const =0
 Retains the instance.
 
virtual int32_t retainCount () const =0
 Returns the current reference count.
 

Detailed Description

Base class for all objects that require reference management.

Member Function Documentation

◆ release()

virtual int32_t release ( ) const
pure virtual

Releases the instance.

Decrements the internal reference count.

Returns
the new reference count.

Implemented in TranscoderCallback, and Stream.

◆ retain()

virtual int32_t retain ( ) const
pure virtual

Retains the instance.

Increments the internal reference count.

Returns
the updated reference count.

Implemented in TranscoderCallback, and Stream.

◆ retainCount()

virtual int32_t retainCount ( ) const
pure virtual

Returns the current reference count.

Returns
the current reference count.

Implemented in TranscoderCallback, and Stream.