A cursor that finds the next solution. More...
#include <nodecursor.hh>
Public Member Functions | |
NextSolCursor (VisualNode *theNode, bool backwards, const VisualNode::NodeAllocator &na) | |
Constructor. More... | |
![]() | |
VisualNode * | node (void) |
Return current node. More... | |
NodeCursor (VisualNode *theNode, const typename VisualNode::NodeAllocator &na) | |
Construct cursor, initially set to theNode. More... | |
unsigned int | alternative (void) |
Return current alternative. More... | |
void | alternative (unsigned int a) |
Set current alternative. More... | |
bool | mayMoveUpwards (void) |
Test if the cursor may move to the parent node. More... | |
void | moveUpwards (void) |
Move cursor to the parent node. More... | |
bool | mayMoveDownwards (void) |
Test if cursor may move to the first child node. More... | |
void | moveDownwards (void) |
Move cursor to the first child node. More... | |
bool | mayMoveSidewards (void) |
Test if cursor may move to the first sibling. More... | |
void | moveSidewards (void) |
Move cursor to the first sibling. More... | |
Cursor interface | |
void | processCurrentNode (void) |
Do nothing. More... | |
bool | mayMoveUpwards (void) |
Test if the cursor may move to the parent node. More... | |
bool | mayMoveDownwards (void) |
Test if cursor may move to the first child node. More... | |
void | moveDownwards (void) |
Move cursor to the first child node. More... | |
bool | mayMoveSidewards (void) |
Test if cursor may move to the first sibling. More... | |
void | moveSidewards (void) |
Move cursor to the first sibling. More... | |
Additional Inherited Members | |
![]() | |
void | node (VisualNode *n) |
Set current node to n. More... | |
VisualNode * | startNode (void) |
Return start node. More... | |
![]() | |
const VisualNode::NodeAllocator & | na |
The node allocator. More... | |
A cursor that finds the next solution.
Definition at line 134 of file nodecursor.hh.
|
inline |
Constructor.
Definition at line 174 of file nodecursor.hpp.
|
inline |
Do nothing.
Definition at line 179 of file nodecursor.hpp.
|
inline |
Test if the cursor may move to the parent node.
Definition at line 187 of file nodecursor.hpp.
|
inline |
Test if cursor may move to the first child node.
Definition at line 192 of file nodecursor.hpp.
|
inline |
Move cursor to the first child node.
Definition at line 199 of file nodecursor.hpp.
|
inline |
Test if cursor may move to the first sibling.
Definition at line 208 of file nodecursor.hpp.
|
inline |
Move cursor to the first sibling.
Definition at line 219 of file nodecursor.hpp.