Gecode::Gist::StatCursor Class Reference
A cursor that collects statistics. More...
#include <nodecursor.hh>
Public Member Functions | |
StatCursor (VisualNode *theNode, const VisualNode::NodeAllocator &na) | |
Constructor. | |
Public Attributes | |
int | depth |
Depth of the search tree. | |
int | failed |
Number of failed nodes. | |
int | solved |
Number of solved nodes. | |
int | choice |
Number of choice nodes. | |
int | open |
Number of open nodes. | |
Cursor interface | |
| |
void | processCurrentNode (void) |
Collect statistics. | |
void | moveDownwards (void) |
Move cursor to the first child node. | |
void | moveUpwards (void) |
Move cursor to the parent node. |
Detailed Description
A cursor that collects statistics.
Definition at line 162 of file nodecursor.hh.
Constructor & Destructor Documentation
Gecode::Gist::StatCursor::StatCursor | ( | VisualNode * | theNode, | |
const VisualNode::NodeAllocator & | na | |||
) | [inline] |
Constructor.
Definition at line 229 of file nodecursor.hpp.
Member Function Documentation
void Gecode::Gist::StatCursor::processCurrentNode | ( | void | ) | [inline] |
Collect statistics.
Definition at line 235 of file nodecursor.hpp.
void Gecode::Gist::StatCursor::moveDownwards | ( | void | ) | [inline] |
Move cursor to the first child node.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 247 of file nodecursor.hpp.
void Gecode::Gist::StatCursor::moveUpwards | ( | void | ) | [inline] |
Move cursor to the parent node.
Reimplemented from Gecode::Gist::NodeCursor< VisualNode >.
Definition at line 254 of file nodecursor.hpp.
Member Data Documentation
Depth of the search tree.
Definition at line 168 of file nodecursor.hh.
Number of failed nodes.
Definition at line 170 of file nodecursor.hh.
Number of solved nodes.
Definition at line 172 of file nodecursor.hh.
Number of choice nodes.
Definition at line 174 of file nodecursor.hh.
Number of open nodes.
Definition at line 176 of file nodecursor.hh.
The documentation for this class was generated from the following files:
- gecode/gist/nodecursor.hh (Revision: 14967)
- gecode/gist/nodecursor.hpp (Revision: 14967)