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

A cursor that computes a tree layout for VisualNodes. More...

#include <layoutcursor.hh>

Public Member Functions

 LayoutCursor (VisualNode *theNode, 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

bool mayMoveDownwards (void)
 Test if the cursor may move to the first child node.
void processCurrentNode (void)
 Compute layout for current node.

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 computes a tree layout for VisualNodes.

Definition at line 44 of file layoutcursor.hh.

Constructor & Destructor Documentation

◆ LayoutCursor()

Gecode::Gist::LayoutCursor::LayoutCursor ( VisualNode * theNode,
const VisualNode::NodeAllocator & na )
inline

Constructor.

Definition at line 43 of file layoutcursor.hpp.

Member Function Documentation

◆ mayMoveDownwards()

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

Test if the cursor may move to the first child node.

Definition at line 37 of file layoutcursor.hpp.

◆ processCurrentNode()

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

Compute layout for current node.

Definition at line 48 of file layoutcursor.hpp.


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