| 94 | // notice we are cloning the workflow and sqlfile too, if necessary |
| 95 | } |
| 96 | Workspace Model_Impl::clone(bool keepHandles) const { |
| 97 | // copy everything but objects |
| 98 | std::shared_ptr<Model_Impl> cloneImpl(new Model_Impl(*this, keepHandles)); |
| 99 | // clone objects |
| 100 | createAndAddClonedObjects(model().getImpl<Model_Impl>(), cloneImpl, keepHandles); |
| 101 | cloneImpl->createComponentWatchers(); |
| 102 | // wrap impl and return |
| 103 | Model result(cloneImpl); |
| 104 | return result.cast<Workspace>(); |
| 105 | } |
| 106 | |
| 107 | Workspace Model_Impl::cloneSubset(const std::vector<Handle>& handles, bool keepHandles, StrictnessLevel level) const { |
| 108 | // copy everything but objects |
no test coverage detected