| 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>(); |
no test coverage detected