spacenode.hh
Go to the documentation of this file.
NodeAllocatorBase< VisualNode > NodeAllocator
Definition node.hh:143
const Space * getWorkingSpace(void) const
Return working space (if present).
Definition spacenode.hpp:112
bool isCurrentBest(BestNode *curBest)
Return whether this node is the currently best solution.
Definition spacenode.hpp:133
void setNoOfOpenChildren(int n)
Set number of open children to n.
bool hasFailedChildren(void)
Return whether the subtree of this node has any failed children.
Definition spacenode.hpp:144
void acquireSpace(NodeAllocator &na, BestNode *curBest, int c_d, int a_d)
Acquire working space, either from parent or by recomputation.
Definition spacenode.cpp:156
int getNumberOfChildNodes(NodeAllocator &na, BestNode *curBest, Statistics &stats, int c_d, int a_d)
Compute and return the number of children.
Definition spacenode.cpp:298
bool hasSolvedChildren(void)
Return whether the subtree of this node has any solved children.
Definition spacenode.hpp:149
int getAlternative(const NodeAllocator &na) const
Return alternative number of this node.
Definition spacenode.hpp:169
Space * getSpace(NodeAllocator &na, BestNode *curBest, int c_d, int a_d)
Return working space. Receiver must delete the space.
Definition spacenode.hpp:98
void purge(const NodeAllocator &na)
Clear working space and copy (if present and this is not the root).
Definition spacenode.hpp:120
bool hasOpenChildren(void)
Return whether the subtree of this node has any open children.
Definition spacenode.hpp:154
int getNoOfOpenChildren(const NodeAllocator &na)
Return number of open children.
Definition spacenode.cpp:369
The Gecode Interactive Search Tool.
Gecode toplevel namespace
