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

Method oaComponent

src/model/AirLoopHVACOutdoorAirSystem.cpp:438–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436 }
437
438 boost::optional<ModelObject> AirLoopHVACOutdoorAirSystem_Impl::oaComponent(openstudio::Handle handle) const {
439 auto comps = oaComponents();
440
441 auto it = std::find_if(comps.begin(), comps.end(), [&](const ModelObject& comp) { return (comp.handle() == handle); });
442 if (it != comps.end()) {
443 return *it;
444 }
445
446 return boost::none;
447 }
448
449 boost::optional<ModelObject> AirLoopHVACOutdoorAirSystem_Impl::reliefComponent(openstudio::Handle handle) const {
450 auto comps = reliefComponents();

Callers 9

addToNodeMethod · 0.80
addToNodeMethod · 0.80
addToNodeMethod · 0.80
removeFromAirLoopHVACMethod · 0.80
removeFromAirLoopHVACMethod · 0.80
addToNodeMethod · 0.80
addToNodeMethod · 0.80
removeFromLoopMethod · 0.80
addToNodeMethod · 0.80

Calls 3

beginMethod · 0.80
endMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected