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


C++ OptionalDouble类代码示例

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


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

示例1: lightsDefinition

 boost::optional<double> Lights_Impl::powerPerPerson() const {
   OptionalDouble temp = lightsDefinition().wattsperPerson();
   if (temp) {
     return temp.get() * multiplier();
   }
   return temp;
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:7,代码来源:Lights.cpp

示例2: electricEquipmentDefinition

 boost::optional<double> ElectricEquipment_Impl::designLevel() const {
   OptionalDouble result = electricEquipmentDefinition().designLevel();
   if (result) {
     return result.get() * multiplier();
   }
   return result;
 }
开发者ID:NREL,项目名称:OpenStudio,代码行数:7,代码来源:ElectricEquipment.cpp

示例3: getDoubleFromQuantity

 bool SizingPlant_Impl::setLoopDesignTemperatureDifference(const Quantity& loopDesignTemperatureDifference) {
   OptionalDouble value = getDoubleFromQuantity(OS_Sizing_PlantFields::LoopDesignTemperatureDifference,loopDesignTemperatureDifference);
   if (!value) {
     return false;
   }
   return setLoopDesignTemperatureDifference(value.get());
 }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:7,代码来源:SizingPlant.cpp

示例4: getDoubleFromQuantity

 bool HeatBalanceAlgorithm_Impl::setSurfaceTemperatureUpperLimit(const Quantity& surfaceTemperatureUpperLimit) {
   OptionalDouble value = getDoubleFromQuantity(OS_HeatBalanceAlgorithmFields::SurfaceTemperatureUpperLimit,surfaceTemperatureUpperLimit);
   if (!value) {
     return false;
   }
   return setSurfaceTemperatureUpperLimit(value.get());
 }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:7,代码来源:HeatBalanceAlgorithm.cpp

示例5: getDoubleFromQuantity

 bool DesignSpecificationZoneAirDistribution_Impl::setZoneAirDistributionEffectivenessinHeatingMode(const Quantity& zoneAirDistributionEffectivenessinHeatingMode) {
   OptionalDouble value = getDoubleFromQuantity(OS_DesignSpecification_ZoneAirDistributionFields::ZoneAirDistributionEffectivenessinHeatingMode,zoneAirDistributionEffectivenessinHeatingMode);
   if (!value) {
     return false;
   }
   return setZoneAirDistributionEffectivenessinHeatingMode(value.get());
 }
开发者ID:Anto-F,项目名称:OpenStudio,代码行数:7,代码来源:DesignSpecificationZoneAirDistribution.cpp

示例6: getDoubleFromQuantity

 bool OutputControlReportingTolerances_Impl::setToleranceforTimeCoolingSetpointNotMet(const Quantity& toleranceforTimeCoolingSetpointNotMet) {
   OptionalDouble value = getDoubleFromQuantity(OS_OutputControl_ReportingTolerancesFields::ToleranceforTimeCoolingSetpointNotMet,toleranceforTimeCoolingSetpointNotMet);
   if (!value) {
     return false;
   }
   return setToleranceforTimeCoolingSetpointNotMet(value.get());
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:7,代码来源:OutputControlReportingTolerances.cpp

示例7: getDoubleFromQuantity

 bool ConstructionWithInternalSource_Impl::setTubeSpacing(const Quantity& tubeSpacing) {
   OptionalDouble value = getDoubleFromQuantity(OS_Construction_InternalSourceFields::TubeSpacing,tubeSpacing);
   if (!value) {
     return false;
   }
   return setTubeSpacing(value.get());
 }
开发者ID:urbanengr,项目名称:OpenStudio,代码行数:7,代码来源:ConstructionWithInternalSource.cpp

示例8: getDoubleFromQuantity

 bool MasslessOpaqueMaterial_Impl::setVisibleAbsorptance(const Quantity& visibleAbsorptance) {
   OptionalDouble value = getDoubleFromQuantity(OS_Material_NoMassFields::VisibleAbsorptance,visibleAbsorptance);
   if (!value) {
     return false;
   }
   return setVisibleAbsorptance(value.get());
 }
开发者ID:CUEBoxer,项目名称:OpenStudio,代码行数:7,代码来源:MasslessOpaqueMaterial.cpp

示例9: getDoubleFromQuantity

 bool SpaceInfiltrationEffectiveLeakageArea_Impl::setWindCoefficient(const Quantity& windCoefficient) {
   OptionalDouble value = getDoubleFromQuantity(OS_SpaceInfiltration_EffectiveLeakageAreaFields::WindCoefficient,windCoefficient);
   if (!value) {
     return false;
   }
   return setWindCoefficient(value.get());
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:7,代码来源:SpaceInfiltrationEffectiveLeakageArea.cpp

示例10: internalMassDefinition

 boost::optional<double> InternalMass_Impl::surfaceAreaPerPerson() const {
   OptionalDouble result = internalMassDefinition().surfaceAreaperPerson();
   if (result) {
     return result.get() * multiplier();
   }
   return result;
 }
开发者ID:pepsi7959,项目名称:OpenStudio,代码行数:7,代码来源:InternalMass.cpp

示例11: getDoubleFromQuantity

 bool SimulationControl_Impl::setTemperatureConvergenceToleranceValue(const Quantity& temperatureConvergenceToleranceValue) {
   OptionalDouble value = getDoubleFromQuantity(OS_SimulationControlFields::TemperatureConvergenceToleranceValue,temperatureConvergenceToleranceValue);
   if (!value) {
     return false;
   }
   return setTemperatureConvergenceToleranceValue(value.get());
 }
开发者ID:jamiebull1,项目名称:OpenStudio,代码行数:7,代码来源:SimulationControl.cpp

示例12: getDoubleFromQuantity

 bool RefractionExtinctionGlazing_Impl::setDirtCorrectionFactorforSolarandVisibleTransmittance(const Quantity& dirtCorrectionFactorforSolarandVisibleTransmittance) {
   OptionalDouble value = getDoubleFromQuantity(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::DirtCorrectionFactorforSolarandVisibleTransmittance,dirtCorrectionFactorforSolarandVisibleTransmittance);
   if (!value) {
     return false;
   }
   return setDirtCorrectionFactorforSolarandVisibleTransmittance(value.get());
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:7,代码来源:RefractionExtinctionGlazing.cpp

示例13: getDoubleFromQuantity

 bool ZoneHVACBaseboardConvectiveElectric_Impl::setEfficiency(const Quantity& efficiency) {
   OptionalDouble value = getDoubleFromQuantity(OS_ZoneHVAC_Baseboard_Convective_ElectricFields::Efficiency,efficiency);
   if (!value) {
     return false;
   }
   return setEfficiency(value.get());
 }
开发者ID:pepsi7959,项目名称:OpenStudio,代码行数:7,代码来源:ZoneHVACBaseboardConvectiveElectric.cpp

示例14: getDoubleFromQuantity

 bool BoilerSteam_Impl::setSizingFactor(const Quantity& sizingFactor) {
   OptionalDouble value = getDoubleFromQuantity(OS_Boiler_SteamFields::SizingFactor,sizingFactor);
   if (!value) {
     return false;
   }
   return setSizingFactor(value.get());
 }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:7,代码来源:BoilerSteam.cpp

示例15: getDoubleFromQuantity

 bool DistrictCooling_Impl::setNominalCapacity(const Quantity& nominalCapacity) {
   OptionalDouble value = getDoubleFromQuantity(OS_DistrictCoolingFields::NominalCapacity,nominalCapacity);
   if (!value) {
     return false;
   }
   return setNominalCapacity(value.get());
 }
开发者ID:Rahjou,项目名称:OpenStudio,代码行数:7,代码来源:DistrictCooling.cpp


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