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. | |
int | getParent (void) const |
Return the parent. | |
VisualNode * | getParent (const NodeAllocator &na) const |
Return the parent. | |
VisualNode * | getChild (const NodeAllocator &na, int n) const |
Return child no n. | |
int | getIndex (const NodeAllocator &na) const |
Return index of this node. | |
bool | isRoot (void) const |
Check if this node is the root of a tree. | |
void | setNumberOfChildren (unsigned int n, NodeAllocator &na) |
Set the number of children to n and initialize children. | |
unsigned int | getNumberOfChildren (void) const |
Return the number of children. | |
Protected Member Functions | |
bool | isUndetermined (void) const |
Return whether this node is undetermined. | |
int | getChild (int n) const |
Return index of child no n. | |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Gecode::Gist::Node::setNumberOfChildren | ( | unsigned int | n, |
NodeAllocator & | na ) |
|
inline |