当前位置: 首页>>代码示例>>C++>>正文


C++ CECDEVICEVEC::push_back方法代码示例

本文整理汇总了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);
  }
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:8,代码来源:CECDeviceMap.cpp

示例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);
  }
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:8,代码来源:CECDeviceMap.cpp

示例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;
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:10,代码来源:CECDeviceMap.cpp

示例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;
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:10,代码来源:CECDeviceMap.cpp

示例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);
  }
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:10,代码来源:CECDeviceMap.cpp

示例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;
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:11,代码来源:CECDeviceMap.cpp

示例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;
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:12,代码来源:CECDeviceMap.cpp

示例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);
  }
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:15,代码来源:CECDeviceMap.cpp

示例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);
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:6,代码来源:CECDeviceMap.cpp

示例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);
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:6,代码来源:CECDeviceMap.cpp

示例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);
}
开发者ID:AndresStepa,项目名称:tcp-cec,代码行数:5,代码来源:CECDeviceMap.cpp


注:本文中的CECDEVICEVEC::push_back方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。