| 140 | } |
| 141 | |
| 142 | void Model_Impl::createComponentWatchers() { |
| 143 | ComponentDataVector componentDataObjects = castVector<ComponentData>(getObjectsByType(ComponentData::iddObjectType())); |
| 144 | if (!m_componentWatchers.empty()) { |
| 145 | OS_ASSERT(m_componentWatchers.size() == componentDataObjects.size()); |
| 146 | return; |
| 147 | } |
| 148 | for (ComponentData& object : componentDataObjects) { |
| 149 | mf_createComponentWatcher(object); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | // Overriding this from WorkspaceObject_Impl is how all objects in the model end up |
| 154 | // as model objects |