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

Method layout

gecode/gist/visualnode.cpp:112–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 void
113 VisualNode::layout(const NodeAllocator& na) {
114 LayoutCursor l(this,na);
115 PostorderNodeVisitor<LayoutCursor>(l).run();
116 // int nodesLayouted = 1;
117 // clock_t t0 = clock();
118 // while (p.next()) {}
119 // while (p.next()) { nodesLayouted++; }
120 // double t = (static_cast<double>(clock()-t0) / CLOCKS_PER_SEC) * 1000.0;
121 // double nps = static_cast<double>(nodesLayouted) /
122 // (static_cast<double>(clock()-t0) / CLOCKS_PER_SEC);
123 // std::cout << "Layout done. " << nodesLayouted << " nodes in "
124 // << t << " ms. " << nps << " nodes/s." << std::endl;
125 }
126
127 void VisualNode::pathUp(const NodeAllocator& na) {
128 VisualNode* cur = this;

Callers 3

TreeCanvasMethod · 0.80
updateCanvasMethod · 0.80
resetMethod · 0.80

Calls 1

runMethod · 0.45

Tested by

no test coverage detected