
A cursor that collects statistics. More...
#include <nodecursor.hh>
Public Member Functions | |
| StatCursor (VisualNode *theNode, const VisualNode::NodeAllocator &na) | |
| Constructor. More... | |
Public Member Functions inherited from Gecode::Gist::NodeCursor< VisualNode > | |
| 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... | |
Public Attributes | |
| int | depth |
| Depth of the search tree. More... | |
| int | failed |
| Number of failed nodes. More... | |
| int | solved |
| Number of solved nodes. More... | |
| int | choice |
| Number of choice nodes. More... | |
| int | open |
| Number of open nodes. More... | |
Cursor interface | |
| void | processCurrentNode (void) |
| Collect statistics. More... | |
| void | moveDownwards (void) |
| Move cursor to the first child node. More... | |
| void | moveUpwards (void) |
| Move cursor to the parent node. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Gecode::Gist::NodeCursor< VisualNode > | |
| void | node (VisualNode *n) |
| Set current node to n. More... | |
| VisualNode * | startNode (void) |
| Return start node. More... | |
Protected Attributes inherited from Gecode::Gist::NodeCursor< VisualNode > | |
| const VisualNode::NodeAllocator & | na |
| The node allocator. More... | |
A cursor that collects statistics.
Definition at line 162 of file nodecursor.hh.
|
inline |
Constructor.
Definition at line 229 of file nodecursor.hpp.
|
inline |
Collect statistics.
Definition at line 235 of file nodecursor.hpp.
|
inline |
Move cursor to the first child node.
Definition at line 247 of file nodecursor.hpp.
|
inline |
Move cursor to the parent node.
Definition at line 254 of file nodecursor.hpp.
| int Gecode::Gist::StatCursor::depth |
Depth of the search tree.
Definition at line 168 of file nodecursor.hh.
| int Gecode::Gist::StatCursor::failed |
Number of failed nodes.
Definition at line 170 of file nodecursor.hh.
| int Gecode::Gist::StatCursor::solved |
Number of solved nodes.
Definition at line 172 of file nodecursor.hh.
| int Gecode::Gist::StatCursor::choice |
Number of choice nodes.
Definition at line 174 of file nodecursor.hh.
| int Gecode::Gist::StatCursor::open |
Number of open nodes.
Definition at line 176 of file nodecursor.hh.