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

Method definition

src/model/SpaceLoadInstance.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 : SpaceLoad_Impl(other, model, keepHandle) {}
31
32 SpaceLoadDefinition SpaceLoadInstance_Impl::definition() const {
33 OptionalSpaceLoadDefinition result = getObject<ModelObject>().getModelObjectTarget<SpaceLoadDefinition>(this->definitionIndex());
34 if (!result) {
35 LOG_AND_THROW("SpaceLoadInstance does not have a definition." << '\n' << this->idfObject());
36 }
37 return result.get();
38 }
39
40 void SpaceLoadInstance_Impl::makeUnique() {
41 SpaceLoadDefinition definition = this->definition();

Callers 15

makeUniqueMethod · 0.95
parse_main_argsFunction · 0.45
peopleDefinitionMethod · 0.45
lightsDefinitionMethod · 0.45
DispatchMethod · 0.45

Calls 3

idfObjectMethod · 0.80
definitionIndexMethod · 0.45
getMethod · 0.45

Tested by 11

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
TEST_FFunction · 0.36