Run a cursor over a tree, processing nodes in pre-order. More...
#include <nodevisitor.hh>
Public Member Functions | |
PreorderNodeVisitor (const Cursor &c) | |
Constructor. More... | |
bool | next (void) |
Move cursor to the next node, return true if succeeded. More... | |
void | run (void) |
Execute visitor. More... | |
![]() | |
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 | |
bool | backtrack (void) |
Move cursor to next node from a leaf. More... | |
Additional Inherited Members | |
![]() | |
Cursor | c |
The cursor. More... | |
Run a cursor over a tree, processing nodes in pre-order.
Definition at line 76 of file nodevisitor.hh.
Gecode::Gist::PreorderNodeVisitor< Cursor >::PreorderNodeVisitor | ( | const Cursor & | c | ) |
Constructor.
Definition at line 102 of file nodevisitor.hpp.
|
inlineprotected |
Move cursor to next node from a leaf.
Definition at line 89 of file nodevisitor.hpp.
|
inline |
Move cursor to the next node, return true if succeeded.
Definition at line 107 of file nodevisitor.hpp.
|
inline |
Execute visitor.
Definition at line 121 of file nodevisitor.hpp.