#include <node.hh>
Public Member Functions | |
NodeAllocatorBase (bool bab) | |
Constructor. More... | |
~NodeAllocatorBase (void) | |
Destructor. More... | |
int | allocate (int p) |
Allocate new node with parent p. More... | |
int | allocate (Space *root) |
Allocate new root node for space root. More... | |
T * | operator[] (int i) const |
Return node for index i. More... | |
T * | best (int i) const |
Return index of best node before i. More... | |
void | setBest (int i, int b) |
Set index of best node before i to b. More... | |
bool | bab (void) const |
Return branch-and-bound flag. More... | |
bool | showLabels (void) const |
Return branching label flag. More... | |
void | showLabels (bool b) |
Set branching label flag. More... | |
bool | hasLabel (T *n) const |
Return whether node n has a label. More... | |
void | setLabel (T *n, const QString &l) |
Set label of node n to l. More... | |
void | clearLabel (T *n) |
Remove label of node n. More... | |
QString | getLabel (T *n) const |
Get label of node n. More... | |
Node allocator.
Gecode::Gist::NodeAllocatorBase< T >::NodeAllocatorBase | ( | bool | bab | ) |
Gecode::Gist::NodeAllocatorBase< T >::~NodeAllocatorBase | ( | void | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Gecode::Gist::NodeAllocatorBase< T >::showLabels | ( | bool | b | ) |
Set branching label flag.
bool Gecode::Gist::NodeAllocatorBase< T >::hasLabel | ( | T * | n | ) | const |
void Gecode::Gist::NodeAllocatorBase< T >::setLabel | ( | T * | n, |
const QString & | l | ||
) |
void Gecode::Gist::NodeAllocatorBase< T >::clearLabel | ( | T * | n | ) |
QString Gecode::Gist::NodeAllocatorBase< T >::getLabel | ( | T * | n | ) | const |