MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / createComponentWatchers

Method createComponentWatchers

src/model/Model.cpp:142–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

ComponentMethod · 0.80
cloneMethod · 0.80
ModelMethod · 0.80

Calls 3

iddObjectTypeFunction · 0.70
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected