| 1265 | } |
| 1266 | |
| 1267 | AirflowNetworkSurface SubSurface_Impl::getAirflowNetworkSurface(const AirflowNetworkComponent& surfaceAirflowLeakage) { |
| 1268 | boost::optional<AirflowNetworkSurface> result = airflowNetworkSurface(); |
| 1269 | if (result) { |
| 1270 | boost::optional<AirflowNetworkComponent> leakageComponent = result->leakageComponent(); |
| 1271 | if (leakageComponent) { |
| 1272 | if (leakageComponent->handle() == surfaceAirflowLeakage.handle()) { |
| 1273 | return result.get(); |
| 1274 | } else { |
| 1275 | result->remove(); |
| 1276 | } |
| 1277 | } else { |
| 1278 | result->remove(); |
| 1279 | } |
| 1280 | } |
| 1281 | |
| 1282 | return AirflowNetworkSurface(this->model(), surfaceAirflowLeakage.handle(), this->handle()); |
| 1283 | } |
| 1284 | |
| 1285 | boost::optional<AirflowNetworkSurface> SubSurface_Impl::airflowNetworkSurface() const { |
| 1286 | std::vector<AirflowNetworkSurface> myAFNSurfs = |
nothing calls this directly
no test coverage detected