libCEC 8.1.0
C / C++ API — control CEC-capable HDMI devices
Loading...
Searching...
No Matches
cec_device_type_list Struct Reference

#include <cectypes.h>

Public Member Functions

void Clear (void)
 Clear this list.
 
void Add (const cec_device_type type)
 Add a type to this list.
 
bool IsSet (cec_device_type type)
 Check whether a type is set in this list.
 
bool IsEmpty () const
 
cec_device_type operator[] (uint8_t pos) const
 Get the type at the requested position.
 
bool operator== (const cec_device_type_list &other) const
 
bool operator!= (const cec_device_type_list &other) const
 

Public Attributes

cec_device_type types [5]
 the list of device types
 

Detailed Description

Definition at line 1264 of file cectypes.h.

Member Function Documentation

◆ Clear()

void cec_device_type_list::Clear ( void  )
inline

Clear this list.

Definition at line 1272 of file cectypes.h.

◆ Add()

void cec_device_type_list::Add ( const cec_device_type  type)
inline

Add a type to this list.

Parameters
typeThe type to add.

Definition at line 1282 of file cectypes.h.

◆ IsSet()

bool cec_device_type_list::IsSet ( cec_device_type  type)
inline

Check whether a type is set in this list.

Parameters
typeThe type to check.
Returns
True when set, false otherwise.

Definition at line 1299 of file cectypes.h.

◆ IsEmpty()

bool cec_device_type_list::IsEmpty ( ) const
inline
Returns
True when this list is empty, false otherwise.

Definition at line 1313 of file cectypes.h.

◆ operator[]()

cec_device_type cec_device_type_list::operator[] ( uint8_t  pos) const
inline

Get the type at the requested position.

Parameters
posThe position.
Returns
The type, or CEC_DEVICE_TYPE_RESERVED when out of bounds.

Definition at line 1329 of file cectypes.h.

◆ operator==()

bool cec_device_type_list::operator== ( const cec_device_type_list other) const
inline

Definition at line 1331 of file cectypes.h.

◆ operator!=()

bool cec_device_type_list::operator!= ( const cec_device_type_list other) const
inline

Definition at line 1339 of file cectypes.h.

Member Data Documentation

◆ types

cec_device_type cec_device_type_list::types[5]

the list of device types

Definition at line 1266 of file cectypes.h.


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