
Base class for nodes of the search tree. More...
#include <node.hh>
Public Types | |
| typedef NodeAllocatorBase< VisualNode > | NodeAllocator |
Public Member Functions | |
| Node (int p, bool failed=false) | |
| Construct node with parent p. More... | |
| int | getParent (void) const |
| Return the parent. More... | |
| VisualNode * | getParent (const NodeAllocator &na) const |
| Return the parent. More... | |
| VisualNode * | getChild (const NodeAllocator &na, int n) const |
| Return child no n. More... | |
| int | getIndex (const NodeAllocator &na) const |
| Return index of this node. More... | |
| bool | isRoot (void) const |
| Check if this node is the root of a tree. More... | |
| void | setNumberOfChildren (unsigned int n, NodeAllocator &na) |
| Set the number of children to n and initialize children. More... | |
| unsigned int | getNumberOfChildren (void) const |
| Return the number of children. More... | |
Protected Member Functions | |
| bool | isUndetermined (void) const |
| Return whether this node is undetermined. More... | |
| int | getChild (int n) const |
| Return index of child no n. More... | |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void Gecode::Gist::Node::setNumberOfChildren | ( | unsigned int | n, |
| NodeAllocator & | na | ||
| ) |
|
inline |