| 660 | } |
| 661 | |
| 662 | std::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() |
| 677 | bool _isInInListRecursive(const DocumentObject* act, const DocumentObject* checkObj, int depth) |
no test coverage detected