MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / remove

Method remove

src/model/RefrigerationWalkIn.cpp:111–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>();

Callers

nothing calls this directly

Calls 6

removeFromSystemMethod · 0.95
zoneBoundariesMethod · 0.95
beginMethod · 0.80
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected