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

Function documentCanRecomputeOnWorker

src/App/Application.cpp:224–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224bool documentCanRecomputeOnWorker(const Document& document)
225{
226 try {
227 const auto& objects = document.getObjects();
228 std::vector<DocumentObject*> recomputeRoots(objects.begin(), objects.end());
229 const auto recomputeObjects = Document::getDependencyList(recomputeRoots, Document::DepSort);
230
231 return std::ranges::all_of(recomputeObjects, [](const DocumentObject* object) {
232 return object && object->canRecomputeOnWorker();
233 });
234 }
235 catch (const Base::BadGraphError&) {
236 return false;
237 }
238}
239
240void reportRecomputeException(const Base::Exception& exception)
241{

Callers 1

Calls 4

getObjectsMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
canRecomputeOnWorkerMethod · 0.45

Tested by

no test coverage detected