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

Method loop

src/model/HVACComponent.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 15

isRemovableMethod · 0.45
addToNodeMethod · 0.45
addToNodeMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

airLoopHVACMethod · 0.95
plantLoopMethod · 0.95

Tested by 10

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36