Gecode::Gist::PreorderNodeVisitor< Cursor > Class Template Reference
Run a cursor over a tree, processing nodes in pre-order. More...
#include <nodevisitor.hh>
Public Member Functions | |
PreorderNodeVisitor (Cursor &c) | |
Constructor. | |
bool | next (void) |
Move cursor to the next node, return true if succeeded. | |
Protected Member Functions | |
bool | backtrack (void) |
Move cursor to next node from a leaf. |
Detailed Description
template<class Cursor>
class Gecode::Gist::PreorderNodeVisitor< Cursor >
Run a cursor over a tree, processing nodes in pre-order.
Definition at line 74 of file nodevisitor.hh.
Constructor & Destructor Documentation
template<class Cursor >
Gecode::Gist::PreorderNodeVisitor< Cursor >::PreorderNodeVisitor | ( | Cursor & | c | ) | [inline] |
Constructor.
Definition at line 95 of file nodevisitor.hpp.
Member Function Documentation
template<class Cursor >
bool Gecode::Gist::PreorderNodeVisitor< Cursor >::backtrack | ( | void | ) | [inline, protected] |
Move cursor to next node from a leaf.
Definition at line 82 of file nodevisitor.hpp.
template<class Cursor >
bool Gecode::Gist::PreorderNodeVisitor< Cursor >::next | ( | void | ) | [inline] |
Move cursor to the next node, return true if succeeded.
Definition at line 100 of file nodevisitor.hpp.
The documentation for this class was generated from the following files:
- gecode/gist/nodevisitor.hh (Revision: 9692)
- gecode/gist/nodevisitor.hpp (Revision: 9692)