Gecode::Gist::PostorderNodeVisitor< Cursor > Class Template Reference
Run a cursor over a tree, processing nodes in post-order. More...
#include <nodevisitor.hh>
Public Member Functions | |
PostorderNodeVisitor (const Cursor &c) | |
Constructor. | |
bool | next (void) |
Move cursor to next node, return true if succeeded. | |
void | run (void) |
Execute visitor. | |
Protected Member Functions | |
void | moveToLeaf (void) |
Move the cursor to the left-most leaf. |
Detailed Description
template<class Cursor>
class Gecode::Gist::PostorderNodeVisitor< Cursor >
Run a cursor over a tree, processing nodes in post-order.
Definition at line 60 of file nodevisitor.hh.
Constructor & Destructor Documentation
template<class Cursor >
Gecode::Gist::PostorderNodeVisitor< Cursor >::PostorderNodeVisitor | ( | const Cursor & | c | ) | [inline] |
Constructor.
Definition at line 61 of file nodevisitor.hpp.
Member Function Documentation
template<class Cursor >
void Gecode::Gist::PostorderNodeVisitor< Cursor >::moveToLeaf | ( | void | ) | [inline, protected] |
Move the cursor to the left-most leaf.
Definition at line 54 of file nodevisitor.hpp.
template<class Cursor >
bool Gecode::Gist::PostorderNodeVisitor< Cursor >::next | ( | void | ) | [inline] |
Move cursor to next node, return true if succeeded.
Definition at line 68 of file nodevisitor.hpp.
template<class Cursor >
void Gecode::Gist::PostorderNodeVisitor< Cursor >::run | ( | void | ) | [inline] |
Execute visitor.
Definition at line 83 of file nodevisitor.hpp.
The documentation for this class was generated from the following files:
- gecode/gist/nodevisitor.hh (Revision: 11306)
- gecode/gist/nodevisitor.hpp (Revision: 11315)