本文整理汇总了C++中CECDEVICEVEC::push_back方法的典型用法代码示例。如果您正苦于以下问题:C++ CECDEVICEVEC::push_back方法的具体用法?C++ CECDEVICEVEC::push_back怎么用?C++ CECDEVICEVEC::push_back使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CECDEVICEVEC
的用法示例。
在下文中一共展示了CECDEVICEVEC::push_back方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetWakeDevices
void CCECDeviceMap::GetWakeDevices(const libcec_configuration &configuration, CECDEVICEVEC &devices) const
{
for (CECDEVICEMAP::const_iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)
{
if (configuration.wakeDevices[(uint8_t)it->first])
devices.push_back(it->second);
}
}
示例2: GetByLogicalAddresses
void CCECDeviceMap::GetByLogicalAddresses(CECDEVICEVEC &devices, const cec_logical_addresses &addresses)
{
for (CECDEVICEMAP::const_iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)
{
if (addresses.IsSet(it->first))
devices.push_back(it->second);
}
}
示例3: FilterType
void CCECDeviceMap::FilterType(const cec_device_type type, CECDEVICEVEC &devices)
{
CECDEVICEVEC newDevices;
for (CECDEVICEVEC::const_iterator it = devices.begin(); it != devices.end(); it++)
{
if ((*it)->GetType() == type)
newDevices.push_back(*it);
}
devices = newDevices;
}
示例4: FilterLibCECControlled
void CCECDeviceMap::FilterLibCECControlled(CECDEVICEVEC &devices)
{
CECDEVICEVEC newDevices;
for (CECDEVICEVEC::const_iterator it = devices.begin(); it != devices.end(); it++)
{
if ((*it)->IsHandledByLibCEC())
newDevices.push_back(*it);
}
devices = newDevices;
}
示例5: GetActive
void CCECDeviceMap::GetActive(CECDEVICEVEC &devices) const
{
for (CECDEVICEMAP::const_iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)
{
cec_bus_device_status status = it->second->GetStatus();
if (status == CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC ||
status == CEC_DEVICE_STATUS_PRESENT)
devices.push_back(it->second);
}
}
示例6: FilterTypes
void CCECDeviceMap::FilterTypes(const cec_device_type_list &types, CECDEVICEVEC &devices)
{
cec_device_type_list t(types);//silly, but needed to retain abi
CECDEVICEVEC newDevices;
for (CECDEVICEVEC::const_iterator it = devices.begin(); it != devices.end(); it++)
{
if (t.IsSet((*it)->GetType()))
newDevices.push_back(*it);
}
devices = newDevices;
}
示例7: FilterActive
void CCECDeviceMap::FilterActive(CECDEVICEVEC &devices)
{
CECDEVICEVEC newDevices;
for (CECDEVICEVEC::const_iterator it = devices.begin(); it != devices.end(); it++)
{
cec_bus_device_status status = (*it)->GetCurrentStatus();
if (status == CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC ||
status == CEC_DEVICE_STATUS_PRESENT)
newDevices.push_back(*it);
}
devices = newDevices;
}
示例8: GetChildrenOf
void CCECDeviceMap::GetChildrenOf(CECDEVICEVEC& devices, CCECBusDevice* device) const
{
devices.clear();
if (!device)
return;
uint16_t iPA = device->GetCurrentPhysicalAddress();
for (CECDEVICEMAP::const_iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)
{
uint16_t iCurrentPA = it->second->GetCurrentPhysicalAddress();
if (CCECTypeUtils::PhysicalAddressIsIncluded(iPA, iCurrentPA))
devices.push_back(it->second);
}
}
示例9: GetLibCECControlled
void CCECDeviceMap::GetLibCECControlled(CECDEVICEVEC &devices) const
{
for (CECDEVICEMAP::const_iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)
if (it->second->IsHandledByLibCEC())
devices.push_back(it->second);
}
示例10: GetByType
void CCECDeviceMap::GetByType(const cec_device_type type, CECDEVICEVEC &devices) const
{
for (CECDEVICEMAP::const_iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)
if (it->second->GetType() == type)
devices.push_back(it->second);
}
示例11: Get
void CCECDeviceMap::Get(CECDEVICEVEC &devices) const
{
for (CECDEVICEMAP::const_iterator it = m_busDevices.begin(); it != m_busDevices.end(); it++)
devices.push_back(it->second);
}