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

Method clone

src/model/ShadingControl.cpp:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 ModelObject ShadingControl_Impl::clone(Model model) const {
123 auto scClone = ResourceObject_Impl::clone(model).cast<ShadingControl>();
124
125 if (model != this->model()) {
126 scClone.removeAllSubSurfaces();
127 }
128
129 return std::move(scClone);
130 }
131
132 std::string ShadingControl_Impl::shadingType() const {
133 boost::optional<std::string> result = getString(OS_ShadingControlFields::ShadingType, true);

Callers

nothing calls this directly

Calls 3

removeAllSubSurfacesMethod · 0.80
cloneFunction · 0.50
modelMethod · 0.45

Tested by

no test coverage detected