AVBlocks for C++  2.1
Audio and Video Software Development Kit
Reference Class Referenceabstract

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

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

Public Member Functions

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

Detailed Description

Base class for all objects that require reference management.

Member Function Documentation

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.

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.

virtual int32_t retainCount ( ) const
pure virtual

Returns the current reference count.

Returns
the current reference count.

Implemented in TranscoderCallback, and Stream.