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

An immutable list of devices. More...

#include <pp.h>

Public Member Functions

virtual HwDeviceat (int32_t index) const =0
 Returns a device by index.
 
virtual int32_t count () const =0
 Returns the number of devices in the list.
 

Protected Member Functions

virtual ~HwDeviceList ()
 This object can be destroyed only by the library.
 

Detailed Description

An immutable list of devices.

Member Function Documentation

◆ at()

virtual HwDevice * at ( int32_t  index) const
pure virtual

Returns a device by index.

Parameters
index[in] A zero-based index.
Returns
A pointer to the Device object specified by index.

The caller is not required to release the returned object.

◆ count()

virtual int32_t count ( ) const
pure virtual

Returns the number of devices in the list.

Returns
number of devices in the list.