MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / setComponent

Method setComponent

src/App/ObjectIdentifier.cpp:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void App::ObjectIdentifier::setComponent(int idx, Component&& comp)
194{
195 if (idx < 0 || idx >= static_cast<int>(components.size())) {
196 FC_THROWM(Base::ValueError, "Invalid component index");
197 }
198 components[idx] = std::move(comp);
199 _cache.clear();
200}
201
202void App::ObjectIdentifier::setComponent(int idx, const Component& comp)
203{

Callers 2

_moveCellsMethod · 0.80
_offsetCellsMethod · 0.80

Calls 4

ComponentClass · 0.70
moveFunction · 0.50
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected