• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ UnsignedVector类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中UnsignedVector的典型用法代码示例。如果您正苦于以下问题:C++ UnsignedVector类的具体用法?C++ UnsignedVector怎么用?C++ UnsignedVector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了UnsignedVector类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: getSourceIndices

 std::vector<ScheduleTypeKey> ZoneControlContaminantController_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_ZoneControl_ContaminantControllerFields::CarbonDioxideControlAvailabilityScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("ZoneControlContaminantController","Carbon Dioxide Control Availability"));
   }
   if (std::find(b,e,OS_ZoneControl_ContaminantControllerFields::CarbonDioxideSetpointScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("ZoneControlContaminantController","Carbon Dioxide Setpoint"));
   }
   if (std::find(b,e,OS_ZoneControl_ContaminantControllerFields::MinimumCarbonDioxideConcentrationScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("ZoneControlContaminantController","Minimum Carbon Dioxide Concentration"));
   }
   if (std::find(b,e,OS_ZoneControl_ContaminantControllerFields::GenericContaminantControlAvailabilityScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("ZoneControlContaminantController","Generic Contaminant Control Availability"));
   }
   if (std::find(b,e,OS_ZoneControl_ContaminantControllerFields::GenericContaminantSetpointScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("ZoneControlContaminantController","Generic Contaminant Setpoint"));
   }
   return result;
 }
开发者ID:Anto-F,项目名称:OpenStudio,代码行数:27,代码来源:ZoneControlContaminantController.cpp


示例2:

std::vector<unsigned> IdfExtensibleGroup::mf_indices() const {
  UnsignedVector result;
  if (!empty()) {
    for (unsigned i = 0, n = numFields(); i < n; ++i) {
      result.push_back(mf_toIndex(i));
    }
  }
  return result;
}
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:9,代码来源:IdfExtensibleGroup.cpp


示例3: TEST_F

TEST_F(IddFixture,IddObject_URL)
{
OptionalIddObject object1 = 
  IddFactory::instance().getObject(IddObjectType::Schedule_File);
 ASSERT_TRUE(object1);
 EXPECT_TRUE(object1->hasURL());
 UnsignedVector vec  = object1->urlFields();
 EXPECT_TRUE(vec.size() == 1);
 EXPECT_TRUE(vec[0] == 2);
}
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:10,代码来源:IddObject_GTest.cpp


示例4: getSourceIndices

 std::vector<ScheduleTypeKey> ZoneHVACLowTempRadiantVarFlow_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::AvailabilityScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("ZoneHVACLowTempRadiantVarFlow","Availability"));
   }
   return result;
 }
开发者ID:pepsi7959,项目名称:OpenStudio,代码行数:11,代码来源:ZoneHVACLowTempRadiantVarFlow.cpp


示例5: getSourceIndices

 std::vector<ScheduleTypeKey> AvailabilityManagerScheduled_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_AvailabilityManager_ScheduledFields::ScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("AvailabilityManagerScheduled","Availability"));
   }
   return result;
 }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:11,代码来源:AvailabilityManagerScheduled.cpp


示例6: getSourceIndices

 std::vector<ScheduleTypeKey> ExteriorLights_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_Exterior_LightsFields::ScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("ExteriorLights","Exterior Lights"));
   }
   return result;
 }
开发者ID:ORNL-BTRIC,项目名称:OpenStudio,代码行数:11,代码来源:ExteriorLights.cpp


示例7: getSourceIndices

 std::vector<ScheduleTypeKey> SpaceInfiltrationEffectiveLeakageArea_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_SpaceInfiltration_EffectiveLeakageAreaFields::ScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("SpaceInfiltrationEffectiveLeakageArea","Infiltration"));
   }
   return result;
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:11,代码来源:SpaceInfiltrationEffectiveLeakageArea.cpp


示例8: getSourceIndices

 std::vector<ScheduleTypeKey> AirTerminalSingleDuctUncontrolled_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_AirTerminal_SingleDuct_UncontrolledFields::AvailabilityScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("AirTerminalSingleDuctUncontrolled","Availability"));
   }
   return result;
 }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:11,代码来源:AirTerminalSingleDuctUncontrolled.cpp


示例9: getSourceIndices

std::vector<ScheduleTypeKey> SiteWaterMainsTemperature_Impl::getScheduleTypeKeys(const Schedule& schedule) const
{
    std::vector<ScheduleTypeKey> result;
    UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
    UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
    if (std::find(b,e,OS_Site_WaterMainsTemperatureFields::TemperatureScheduleName) != e)
    {
        result.push_back(ScheduleTypeKey("SiteWaterMainsTemperature","Temperature"));
    }
    return result;
}
开发者ID:jbl5088,项目名称:OpenStudio,代码行数:11,代码来源:SiteWaterMainsTemperature.cpp


示例10: getSourceIndices

 std::vector<ScheduleTypeKey> ThermalStorageIceDetailed_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_ThermalStorage_Ice_DetailedFields::AvailabilitySchedule) != e)
   {
     result.push_back(ScheduleTypeKey("ThermalStorageIceDetailed","Availability Schedule"));
   }
   return result;
 }
开发者ID:jtanaa,项目名称:OpenStudio,代码行数:11,代码来源:ThermalStorageIceDetailed.cpp


示例11: getSourceIndices

 std::vector<ScheduleTypeKey> HeaderedPumpsVariableSpeed_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_HeaderedPumps_VariableSpeedFields::PumpFlowRateSchedule) != e)
   {
     result.push_back(ScheduleTypeKey("HeaderedPumpsVariableSpeed","Pump Flow Rate Schedule"));
   }
   return result;
 }
开发者ID:jtanaa,项目名称:OpenStudio,代码行数:11,代码来源:HeaderedPumpsVariableSpeed.cpp


示例12: getSourceIndices

 std::vector<ScheduleTypeKey> ZoneHVACEnergyRecoveryVentilator_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_ZoneHVAC_EnergyRecoveryVentilatorFields::AvailabilityScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("ZoneHVACEnergyRecoveryVentilator","Availability"));
   }
   return result;
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:11,代码来源:ZoneHVACEnergyRecoveryVentilator.cpp


示例13: getSourceIndices

 std::vector<ScheduleTypeKey> ZoneHVACBaseboardConvectiveElectric_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_ZoneHVAC_Baseboard_Convective_ElectricFields::AvailabilitySchedule) != e)
   {
     result.push_back(ScheduleTypeKey("ZoneHVACBaseboardConvectiveElectric","Availability"));
   }
   return result;
 }
开发者ID:pepsi7959,项目名称:OpenStudio,代码行数:11,代码来源:ZoneHVACBaseboardConvectiveElectric.cpp


示例14: getSourceIndices

 // Availability Schedule
 std::vector<ScheduleTypeKey> AirTerminalDualDuctVAVOutdoorAir_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_AirTerminal_DualDuct_VAV_OutdoorAirFields::AvailabilitySchedule) != e)
   {
     result.push_back(ScheduleTypeKey("AirTerminalDualDuctVAVOutdoorAir","Availability Schedule"));
   }
   return result;
 }
开发者ID:NREL,项目名称:OpenStudio,代码行数:12,代码来源:AirTerminalDualDuctVAVOutdoorAir.cpp


示例15: getSourceIndices

 std::vector<ScheduleTypeKey> HotWaterEquipment_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_HotWaterEquipmentFields::ScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("HotWaterEquipment","Hot Water Equipment"));
   }
   return result;
 }
开发者ID:jtanaa,项目名称:OpenStudio,代码行数:11,代码来源:HotWaterEquipment.cpp


示例16: getSourceIndices

 std::vector<ScheduleTypeKey> CoilHeatingElectric_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_Coil_Heating_ElectricFields::AvailabilityScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("CoilHeatingElectric","Availability"));
   }
   return result;
 }
开发者ID:Anto-F,项目名称:OpenStudio,代码行数:11,代码来源:CoilHeatingElectric.cpp


示例17: getSourceIndices

 std::vector<ScheduleTypeKey> EvaporativeFluidCoolerSingleSpeed_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("EvaporativeFluidCoolerSingleSpeed","Blowdown Makeup Water Usage"));
   }
   return result;
 }
开发者ID:ORNL-BTRIC,项目名称:OpenStudio,代码行数:11,代码来源:EvaporativeFluidCoolerSingleSpeed.cpp


示例18: getSourceIndices

 std::vector<ScheduleTypeKey> CoilCoolingDXVariableRefrigerantFlow_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::AvailabilitySchedule) != e)
   {
     result.push_back(ScheduleTypeKey("CoilCoolingDXVariableRefrigerantFlow","Availability Schedule"));
   }
   return result;
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:11,代码来源:CoilCoolingDXVariableRefrigerantFlow.cpp


示例19: getSourceIndices

 std::vector<ScheduleTypeKey> AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_AirTerminal_SingleDuct_VAV_HeatAndCool_NoReheatFields::AvailabilitySchedule) != e)
   {
     result.push_back(ScheduleTypeKey("AirTerminalSingleDuctVAVHeatAndCoolNoReheat","Availability Schedule"));
   }
   return result;
 }
开发者ID:NREL,项目名称:OpenStudio,代码行数:11,代码来源:AirTerminalSingleDuctVAVHeatAndCoolNoReheat.cpp


示例20: getSourceIndices

 std::vector<ScheduleTypeKey> ZoneAirContaminantBalance_Impl::getScheduleTypeKeys(const Schedule& schedule) const
 {
   std::vector<ScheduleTypeKey> result;
   UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
   UnsignedVector::const_iterator b(fieldIndices.begin()), e(fieldIndices.end());
   if (std::find(b,e,OS_ZoneAirContaminantBalanceFields::OutdoorCarbonDioxideScheduleName) != e)
   {
     result.push_back(ScheduleTypeKey("ZoneAirContaminantBalance","Outdoor Carbon Dioxide"));
   }
   return result;
 }
开发者ID:Anto-F,项目名称:OpenStudio,代码行数:11,代码来源:ZoneAirContaminantBalance.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ UnsyncedRNG类代码示例发布时间:2022-05-31
下一篇:
C++ UnsignedArray类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap