Generated on Mon Nov 30 23:53:48 2009 for Gecode by doxygen 1.6.1

Gecode::Gist::NextSolCursor Class Reference

A cursor that finds the next solution. More...

#include <nodecursor.hh>

List of all members.

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 114 of file nodecursor.hh.


Constructor & Destructor Documentation

Gecode::Gist::NextSolCursor::NextSolCursor ( VisualNode theNode,
bool  backwards 
)

Constructor.

Definition at line 70 of file nodecursor.cpp.


Member Function Documentation

void Gecode::Gist::NextSolCursor::processCurrentNode ( void   ) 

Do nothing.

Definition at line 74 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 82 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 87 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 94 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 103 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 113 of file nodecursor.cpp.


The documentation for this class was generated from the following files: