MCPcopy Create free account
hub / github.com/Gecode/gecode / navLeft

Method navLeft

gecode/gist/treecanvas.cpp:970–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968 }
969
970 void
971 TreeCanvas::navLeft(void) {
972 QMutexLocker locker(&mutex);
973 VisualNode* p = currentNode->getParent(*na);
974 if (p != nullptr) {
975 int alt = currentNode->getAlternative(*na);
976 if (alt > 0) {
977 VisualNode* n = p->getChild(*na,alt-1);
978 setCurrentNode(n);
979 centerCurrentNode();
980 }
981 }
982 }
983
984 void
985 TreeCanvas::navRight(void) {

Callers

nothing calls this directly

Calls 3

getParentMethod · 0.80
getAlternativeMethod · 0.80
getChildMethod · 0.45

Tested by

no test coverage detected