MCPcopy Create free account
hub / github.com/VCVRack/Rack / getCables

Method getCables

src/app/RackWidget.cpp:1543–1552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1541}
1542
1543std::vector<CableWidget*> RackWidget::getCables() {
1544 std::vector<CableWidget*> cws;
1545 cws.reserve(internal->cableContainer->children.size());
1546 for (widget::Widget* w : internal->cableContainer->children) {
1547 CableWidget* cw = dynamic_cast<CableWidget*>(w);
1548 assert(cw);
1549 cws.push_back(cw);
1550 }
1551 return cws;
1552}
1553
1554std::vector<CableWidget*> RackWidget::getCompleteCables() {
1555 std::vector<CableWidget*> cws;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected