| 580 | |
| 581 | |
| 582 | GElementPtrArr 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 | |
| 598 | CBool GElement::isDefaultBinding() const { |
no outgoing calls
no test coverage detected