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

Method remove

src/model/SubSurface.cpp:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 }
124
125 std::vector<IdfObject> SubSurface_Impl::remove() {
126 boost::optional<SubSurface> adjacentSubSurface = this->adjacentSubSurface();
127 if (adjacentSubSurface) {
128 this->resetAdjacentSubSurface();
129 }
130
131 // Remove it from the extensible groups in ShadingControl(s)
132 for (auto& sc : shadingControls()) {
133 sc.removeSubSurface(this->getObject<SubSurface>());
134 }
135
136 return ParentObject_Impl::remove();
137 }
138
139 ModelObject SubSurface_Impl::clone(Model model) const {
140 auto clone = ParentObject_Impl::clone(model).cast<SubSurface>();

Callers 2

setSubSurfaceTypeMethod · 0.45

Calls 3

adjacentSubSurfaceMethod · 0.95
removeSubSurfaceMethod · 0.80

Tested by

no test coverage detected