Gecode::Gist::NextSolCursor Class Reference
A cursor that finds the next solution. More...
#include <nodecursor.hh>
Public Member Functions | |
NextSolCursor (VisualNode *theNode, bool backwards) | |
Constructor. | |
Cursor interface | |
| |
void | processCurrentNode (void) |
Do nothing. | |
bool | mayMoveUpwards (void) |
Test if the cursor may move to the parent node. | |
bool | mayMoveDownwards (void) |
Test if cursor may move to the first child node. | |
void | moveDownwards (void) |
Move cursor to the first child node. | |
bool | mayMoveSidewards (void) |
Test if cursor may move to the first sibling. | |
void | moveSidewards (void) |
Move cursor to the first sibling. |
Detailed Description
A cursor that finds the next solution.
Definition at line 126 of file nodecursor.hh.
Constructor & Destructor Documentation
Gecode::Gist::NextSolCursor::NextSolCursor | ( | VisualNode * | theNode, | |
bool | backwards | |||
) |
Constructor.
Definition at line 81 of file nodecursor.cpp.
Member Function Documentation
void Gecode::Gist::NextSolCursor::processCurrentNode | ( | void | ) |
Do nothing.
Definition at line 85 of file nodecursor.cpp.
bool Gecode::Gist::NextSolCursor::mayMoveUpwards | ( | void | ) |
Test if the cursor may move to the parent node.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 93 of file nodecursor.cpp.
bool Gecode::Gist::NextSolCursor::mayMoveDownwards | ( | void | ) |
Test if cursor may move to the first child node.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 98 of file nodecursor.cpp.
void Gecode::Gist::NextSolCursor::moveDownwards | ( | void | ) |
Move cursor to the first child node.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 105 of file nodecursor.cpp.
bool Gecode::Gist::NextSolCursor::mayMoveSidewards | ( | void | ) |
Test if cursor may move to the first sibling.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 114 of file nodecursor.cpp.
void Gecode::Gist::NextSolCursor::moveSidewards | ( | void | ) |
Move cursor to the first sibling.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 124 of file nodecursor.cpp.
The documentation for this class was generated from the following files:
- gecode/gist/nodecursor.hh (Revision: 10600)
- gecode/gist/nodecursor.cpp (Revision: 10600)