| 44 | : ParentObject_Impl(other, model, keepHandles) {} |
| 45 | |
| 46 | boost::optional<Loop> HVACComponent_Impl::loop() const { |
| 47 | if (boost::optional<AirLoopHVAC> airLoopHVAC = this->airLoopHVAC()) { |
| 48 | return airLoopHVAC->optionalCast<Loop>(); |
| 49 | } else if (boost::optional<PlantLoop> plantLoop = this->plantLoop()) { |
| 50 | return plantLoop->optionalCast<Loop>(); |
| 51 | } else { |
| 52 | return boost::none; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | boost::optional<AirLoopHVAC> HVACComponent_Impl::airLoopHVAC() const { |
| 57 | if (m_airLoopHVAC) { |