
Run a cursor over a tree, processing nodes in post-order. More...
#include <nodevisitor.hh>
Public Member Functions | |
| PostorderNodeVisitor (const Cursor &c) | |
| Constructor. More... | |
| bool | next (void) |
| Move cursor to next node, return true if succeeded. More... | |
| void | run (void) |
| Execute visitor. More... | |
Public Member Functions inherited from Gecode::Gist::NodeVisitor< Cursor > | |
| NodeVisitor (const Cursor &c0) | |
| Constructor. More... | |
| void | setCursor (const Cursor &c0) |
| Reset the cursor object to c0. More... | |
| Cursor & | getCursor (void) |
| Return the cursor. More... | |
Protected Member Functions | |
| void | moveToLeaf (void) |
| Move the cursor to the left-most leaf. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Gecode::Gist::NodeVisitor< Cursor > | |
| Cursor | c |
| The cursor. More... | |
Run a cursor over a tree, processing nodes in post-order.
Definition at line 60 of file nodevisitor.hh.
| Gecode::Gist::PostorderNodeVisitor< Cursor >::PostorderNodeVisitor | ( | const Cursor & | c | ) |
Constructor.
Definition at line 61 of file nodevisitor.hpp.
|
inlineprotected |
Move the cursor to the left-most leaf.
Definition at line 54 of file nodevisitor.hpp.
|
inline |
Move cursor to next node, return true if succeeded.
Definition at line 68 of file nodevisitor.hpp.
|
inline |
Execute visitor.
Definition at line 83 of file nodevisitor.hpp.