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

Method processCurrentNode

gecode/gist/layoutcursor.hpp:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 : NodeCursor<VisualNode>(theNode,na) {}
46
47 forceinline void
48 LayoutCursor::processCurrentNode(void) {
49 VisualNode* currentNode = node();
50 if (currentNode->isDirty()) {
51 if (currentNode->isHidden()) {
52 // do nothing
53 } else if (false && currentNode->getNumberOfChildren() < 1) {
54 currentNode->setShape(Shape::leaf);
55 } else {
56 currentNode->computeShape(na);
57 }
58 currentNode->setDirty(false);
59 }
60 if (currentNode->getNumberOfChildren() >= 1)
61 currentNode->setChildrenLayoutDone(true);
62 }
63
64}}
65

Callers

nothing calls this directly

Calls 7

isDirtyMethod · 0.80
isHiddenMethod · 0.80
getNumberOfChildrenMethod · 0.80
setShapeMethod · 0.80
computeShapeMethod · 0.80
setDirtyMethod · 0.80
setChildrenLayoutDoneMethod · 0.80

Tested by

no test coverage detected