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

Method primaryComponentObject

src/model/ComponentData.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 ModelObject ComponentData_Impl::primaryComponentObject() const {
68 OptionalModelObject omo = getComponentObject(0);
69 if (!omo) {
70 LOG_AND_THROW("ComponentData objects must always be able to return the primary object in the component.");
71 }
72 return *omo;
73 }
74
75 std::vector<ModelObject> ComponentData_Impl::componentObjects() const {
76 ModelObjectVector result;

Callers 5

primaryObjectMethod · 0.80
TEST_FFunction · 0.80
testExampleComponentFunction · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.64
testExampleComponentFunction · 0.64
TEST_FFunction · 0.64