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

Method primaryObject

src/model/Component.cpp:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 ModelObject Component_Impl::primaryObject() const {
59 ComponentData metaDataAndContents = componentData();
60 OS_ASSERT(metaDataAndContents.numComponentObjects() > 0);
61 return metaDataAndContents.primaryComponentObject();
62 }
63
64 // SETTERS (override to do nothing)
65

Callers 3

TEST_FFunction · 0.80

Calls 2

numComponentObjectsMethod · 0.80

Tested by 3

TEST_FFunction · 0.64