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

Method loop

src/model/AvailabilityManager.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 : ModelObject_Impl(other, model, keepHandles) {}
34
35 boost::optional<Loop> AvailabilityManager_Impl::loop() const {
36 auto t_handle = handle();
37 for (const auto& avmList : model().getConcreteModelObjects<AvailabilityManagerAssignmentList>()) {
38 for (const auto& avm : avmList.availabilityManagers()) {
39 if (avm.handle() == t_handle) {
40 return avmList.loop();
41 }
42 }
43 }
44 return boost::none;
45 }
46
47 } // namespace detail
48

Callers

nothing calls this directly

Calls 2

availabilityManagersMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected