MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / getDeepPath

Method getDeepPath

src/GraphCtrl/GraphElement/GElement.cpp:582–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580
581
582GElementPtrArr GElement::getDeepPath(CBool reverse) const {
583 GElementPtrArr path;
584 auto* cur = const_cast<GElementPtr>(this);
585 while (cur) {
586 path.push_back(cur);
587 cur = cur->belong_;
588 }
589
590 if (!reverse) {
591 // 如果 reverse=false,则 pipeline(nullptr)->a->b->this
592 std::reverse(path.begin(), path.end());
593 }
594 return path;
595}
596
597
598CBool GElement::isDefaultBinding() const {

Callers 1

getNearestAncestorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected