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

Method navDown

gecode/gist/treecanvas.cpp:947–968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945 }
946
947 void
948 TreeCanvas::navDown(void) {
949 QMutexLocker locker(&mutex);
950 if (!currentNode->isHidden()) {
951 switch (currentNode->getStatus()) {
952 case STOP:
953 case UNSTOP:
954 case BRANCH:
955 {
956 int alt = std::max(0, currentNode->getPathAlternative(*na));
957 VisualNode* n = currentNode->getChild(*na,alt);
958 setCurrentNode(n);
959 centerCurrentNode();
960 break;
961 }
962 case SOLVED:
963 case FAILED:
964 case UNDETERMINED:
965 break;
966 }
967 }
968 }
969
970 void
971 TreeCanvas::navLeft(void) {

Callers

nothing calls this directly

Calls 5

isHiddenMethod · 0.80
getStatusMethod · 0.80
getPathAlternativeMethod · 0.80
maxFunction · 0.50
getChildMethod · 0.45

Tested by

no test coverage detected