A cursor that finds the next solution. More...
#include <nodecursor.hh>
Public Member Functions | |
NextSolCursor (VisualNode *theNode, bool backwards, const VisualNode::NodeAllocator &na) | |
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. |
A cursor that finds the next solution.
Gecode::Gist::NextSolCursor::NextSolCursor | ( | VisualNode * | theNode, |
bool | backwards, | ||
const VisualNode::NodeAllocator & | na | ||
) | [inline] |
Constructor.
Definition at line 174 of file nodecursor.hpp.
void Gecode::Gist::NextSolCursor::processCurrentNode | ( | void | ) | [inline] |
Do nothing.
Definition at line 179 of file nodecursor.hpp.
bool Gecode::Gist::NextSolCursor::mayMoveUpwards | ( | void | ) | [inline] |
Test if the cursor may move to the parent node.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 187 of file nodecursor.hpp.
bool Gecode::Gist::NextSolCursor::mayMoveDownwards | ( | void | ) | [inline] |
Test if cursor may move to the first child node.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 192 of file nodecursor.hpp.
void Gecode::Gist::NextSolCursor::moveDownwards | ( | void | ) | [inline] |
Move cursor to the first child node.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 199 of file nodecursor.hpp.
bool Gecode::Gist::NextSolCursor::mayMoveSidewards | ( | void | ) | [inline] |
Test if cursor may move to the first sibling.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 208 of file nodecursor.hpp.
void Gecode::Gist::NextSolCursor::moveSidewards | ( | void | ) | [inline] |
Move cursor to the first sibling.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 219 of file nodecursor.hpp.