Gecode::Gist::NodeAllocatorBase< T > Class Template Reference
#include <gecode/gist/node.hh>
Public Member Functions | |
| NodeAllocatorBase (bool bab) | |
| Constructor. | |
| ~NodeAllocatorBase (void) | |
| Destructor. | |
| int | allocate (int p) |
| Allocate new node with parent p. | |
| int | allocate (Space *root) |
| Allocate new root node for space root. | |
| T * | operator[] (int i) const |
| Return node for index i. | |
| T * | best (int i) const |
| Return index of best node before i. | |
| void | setBest (int i, int b) |
| Set index of best node before i to b. | |
| bool | bab (void) const |
| Return branch-and-bound flag. | |
| bool | showLabels (void) const |
| Return branching label flag. | |
| void | showLabels (bool b) |
| Set branching label flag. | |
| bool | hasLabel (T *n) const |
| Return whether node n has a label. | |
| void | setLabel (T *n, const QString &l) |
| Set label of node n to l. | |
| void | clearLabel (T *n) |
| Remove label of node n. | |
| QString | getLabel (T *n) const |
| Get label of node n. | |
Detailed Description
template<class T>
class Gecode::Gist::NodeAllocatorBase< T >
class Gecode::Gist::NodeAllocatorBase< T >
Node allocator.
Constructor & Destructor Documentation
◆ NodeAllocatorBase()
template<class T>
| Gecode::Gist::NodeAllocatorBase< T >::NodeAllocatorBase | ( | bool | bab | ) |
◆ ~NodeAllocatorBase()
template<class T>
| Gecode::Gist::NodeAllocatorBase< T >::~NodeAllocatorBase | ( | void | ) |
Member Function Documentation
◆ allocate() [1/2]
template<class T>
|
inline |
◆ allocate() [2/2]
template<class T>
|
inline |
◆ operator[]()
template<class T>
|
inline |
◆ best()
template<class T>
|
inline |
◆ setBest()
template<class T>
|
inline |
◆ bab()
template<class T>
|
inline |
◆ showLabels() [1/2]
template<class T>
|
inline |
◆ showLabels() [2/2]
template<class T>
| void Gecode::Gist::NodeAllocatorBase< T >::showLabels | ( | bool | b | ) |
Set branching label flag.
◆ hasLabel()
template<class T>
| bool Gecode::Gist::NodeAllocatorBase< T >::hasLabel | ( | T * | n | ) | const |
◆ setLabel()
template<class T>
| void Gecode::Gist::NodeAllocatorBase< T >::setLabel | ( | T * | n, |
| const QString & | l ) |
◆ clearLabel()
template<class T>
| void Gecode::Gist::NodeAllocatorBase< T >::clearLabel | ( | T * | n | ) |
◆ getLabel()
template<class T>
| QString Gecode::Gist::NodeAllocatorBase< T >::getLabel | ( | T * | n | ) | const |
The documentation for this class was generated from the following files:
