Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0
Gecode::Gist::NextSolCursor Class Reference

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

#include <nodecursor.hh>

Public Member Functions

 NextSolCursor (VisualNode *theNode, bool backwards, const VisualNode::NodeAllocator &na)
 Constructor.
Public Member Functions inherited from Gecode::Gist::NodeCursor< VisualNode >
 NodeCursor (VisualNode *theNode, const typename VisualNode::NodeAllocator &na)
 Construct cursor, initially set to theNode.
unsigned int alternative (void)
 Return current alternative.
bool mayMoveUpwards (void)
 Test if the cursor may move to the parent node.
void moveUpwards (void)
 Move cursor 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.

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.

Additional Inherited Members

Protected Member Functions inherited from Gecode::Gist::NodeCursor< VisualNode >
void node (VisualNode *n)
 Set current node to n.
VisualNodestartNode (void)
 Return start node.
Protected Attributes inherited from Gecode::Gist::NodeCursor< VisualNode >
const VisualNode::NodeAllocatorna
 The node allocator.

Detailed Description

A cursor that finds the next solution.

Definition at line 130 of file nodecursor.hh.

Constructor & Destructor Documentation

◆ NextSolCursor()

Gecode::Gist::NextSolCursor::NextSolCursor ( VisualNode * theNode,
bool backwards,
const VisualNode::NodeAllocator & na )
inline

Constructor.

Definition at line 170 of file nodecursor.hpp.

Member Function Documentation

◆ processCurrentNode()

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

Do nothing.

Definition at line 175 of file nodecursor.hpp.

◆ mayMoveUpwards()

bool Gecode::Gist::NextSolCursor::mayMoveUpwards ( void )
inline

Test if the cursor may move to the parent node.

Definition at line 183 of file nodecursor.hpp.

◆ mayMoveDownwards()

bool Gecode::Gist::NextSolCursor::mayMoveDownwards ( void )
inline

Test if cursor may move to the first child node.

Definition at line 188 of file nodecursor.hpp.

◆ moveDownwards()

void Gecode::Gist::NextSolCursor::moveDownwards ( void )
inline

Move cursor to the first child node.

Definition at line 195 of file nodecursor.hpp.

◆ mayMoveSidewards()

bool Gecode::Gist::NextSolCursor::mayMoveSidewards ( void )
inline

Test if cursor may move to the first sibling.

Definition at line 204 of file nodecursor.hpp.

◆ moveSidewards()

void Gecode::Gist::NextSolCursor::moveSidewards ( void )
inline

Move cursor to the first sibling.

Definition at line 215 of file nodecursor.hpp.


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