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

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

Inherited by MediaInfo, MediaPin, MediaSocket, Parameter, ParameterList, Transcoder, TranscoderCallback, MediaBuffer, MediaSample, MetaAttribute, MetaAttributeList, Metadata, MetaPicture, MetaPictureList, StreamInfo, StreamInfoEnum, LicenseInfo, and Stream.

Public Member Functions

virtual int32_t retain () const =0
 Retains the instance. More...
 
virtual int32_t release () const =0
 Releases 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.