本文整理汇总了C++中UnsignedVector类的典型用法代码示例。如果您正苦于以下问题:C++ UnsignedVector类的具体用法?C++ UnsignedVector怎么用?C++ UnsignedVector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了UnsignedVector类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}