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

Method removeAllModules

src/model/CentralHeatPumpSystem.cpp:209–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 void CentralHeatPumpSystem_Impl::removeAllModules() {
210 auto modelObjectList = chillerHeaterModuleList();
211 if (modelObjectList) {
212 auto const modelObjects = modelObjectList->modelObjects();
213
214 for (const auto& elem : modelObjects) {
215 auto const modelObject = elem.optionalCast<CentralHeatPumpSystemModule>();
216 if (modelObject) {
217 modelObjectList->removeModelObject(elem);
218 }
219 }
220 }
221 }
222
223 std::vector<CentralHeatPumpSystemModule> CentralHeatPumpSystem_Impl::modules() const {
224 std::vector<CentralHeatPumpSystemModule> result;

Callers 1

TEST_FFunction · 0.80

Calls 2

removeModelObjectMethod · 0.80
modelObjectsMethod · 0.45

Tested by 1

TEST_FFunction · 0.64