| 109 | } |
| 110 | |
| 111 | std::vector<IdfObject> RefrigerationWalkIn_Impl::remove() { |
| 112 | std::vector<IdfObject> result; |
| 113 | |
| 114 | this->removeFromSystem(); |
| 115 | |
| 116 | std::shared_ptr<Model_Impl> t_model = model().getImpl<Model_Impl>(); |
| 117 | // t_model->blockSignals(true); |
| 118 | |
| 119 | if (boost::optional<RefrigerationDefrostCycleParameters> walkinDefrostCycleParameters = this->optionalWalkinDefrostCycleParameters()) { |
| 120 | std::vector<IdfObject> removedDefrostCycleParameters = walkinDefrostCycleParameters->remove(); |
| 121 | result.insert(result.end(), removedDefrostCycleParameters.begin(), removedDefrostCycleParameters.end()); |
| 122 | } |
| 123 | |
| 124 | std::vector<RefrigerationWalkInZoneBoundary> zoneBoundaries = this->zoneBoundaries(); |
| 125 | for (auto& zoneBoundary : zoneBoundaries) { |
| 126 | std::vector<IdfObject> removedZoneBoundaries = zoneBoundary.remove(); |
| 127 | result.insert(result.end(), removedZoneBoundaries.begin(), removedZoneBoundaries.end()); |
| 128 | } |
| 129 | |
| 130 | // t_model->blockSignals(false); |
| 131 | |
| 132 | std::vector<IdfObject> removedRRefrigerationWalkIn = ModelObject_Impl::remove(); |
| 133 | result.insert(result.end(), removedRRefrigerationWalkIn.begin(), removedRRefrigerationWalkIn.end()); |
| 134 | |
| 135 | return result; |
| 136 | } |
| 137 | |
| 138 | ModelObject RefrigerationWalkIn_Impl::clone(Model model) const { |
| 139 | auto modelObjectClone = ModelObject_Impl::clone(model).cast<RefrigerationWalkIn>(); |
nothing calls this directly
no test coverage detected