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

Method next

gecode/gist/nodevisitor.hpp:63–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62 template<class Cursor>
63 forceinline bool
64 PostorderNodeVisitor<Cursor>::next(void) {
65 c.processCurrentNode();
66 if (c.mayMoveSidewards()) {
67 c.moveSidewards();
68 moveToLeaf();
69 } else if (c.mayMoveUpwards()) {
70 c.moveUpwards();
71 } else {
72 return false;
73 }
74 return true;
75 }
76
77 template<class Cursor>
78 forceinline void

Callers

nothing calls this directly

Calls 7

mayMoveSidewardsMethod · 0.80
mayMoveUpwardsMethod · 0.80
processCurrentNodeMethod · 0.45
moveSidewardsMethod · 0.45
moveUpwardsMethod · 0.45
mayMoveDownwardsMethod · 0.45
moveDownwardsMethod · 0.45

Tested by

no test coverage detected