| 296 | |
| 297 | template <class T> |
| 298 | void RefrigerationSecondarySystem_Impl::removeAllTemplate(boost::optional<ModelObjectList>& modelObjectList) { |
| 299 | if (modelObjectList) { |
| 300 | std::vector<ModelObject> modelObjects = modelObjectList->modelObjects(); |
| 301 | |
| 302 | for (const auto& elem : modelObjects) { |
| 303 | boost::optional<T> modelObject = elem.optionalCast<T>(); |
| 304 | if (modelObject) { |
| 305 | modelObjectList->removeModelObject(elem); |
| 306 | } |
| 307 | } |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | template <class T> |
| 312 | void RefrigerationSecondarySystem_Impl::removeTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList) { |
nothing calls this directly
no test coverage detected