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

Method getOutListRecursive

src/App/DocumentObject.cpp:662–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662std::vector<App::DocumentObject*> DocumentObject::getOutListRecursive() const
663{
664 // number of objects in document is a good estimate in result size
665 int maxDepth = GetApplication().checkLinkDepth(0);
666 std::set<App::DocumentObject*> result;
667
668 // using a recursive helper to collect all OutLists
669 _getOutListRecursive(result, this, this, maxDepth);
670
671 std::vector<App::DocumentObject*> array;
672 array.insert(array.begin(), result.begin(), result.end());
673 return array;
674}
675
676// helper for isInInListRecursive()
677bool _isInInListRecursive(const DocumentObject* act, const DocumentObject* checkObj, int depth)

Callers 3

activatedMethod · 0.45
setItemStateMethod · 0.45
activatedMethod · 0.45

Calls 5

_getOutListRecursiveFunction · 0.85
checkLinkDepthMethod · 0.80
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected