Gecode::Gist::NodeAllocatorBase< T > Class Template Reference
#include <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. |
Detailed Description
template<class T>
class Gecode::Gist::NodeAllocatorBase< T >
Node allocator.
Definition at line 49 of file node.hh.
Constructor & Destructor Documentation
template<class T >
Gecode::Gist::NodeAllocatorBase< T >::NodeAllocatorBase | ( | bool | bab | ) | [inline] |
template<class T >
Gecode::Gist::NodeAllocatorBase< T >::~NodeAllocatorBase | ( | void | ) | [inline] |
Member Function Documentation
template<class T >
int Gecode::Gist::NodeAllocatorBase< T >::allocate | ( | int | p | ) | [inline] |
template<class T >
int Gecode::Gist::NodeAllocatorBase< T >::allocate | ( | Space * | root | ) | [inline] |
template<class T >
T * Gecode::Gist::NodeAllocatorBase< T >::operator[] | ( | int | i | ) | const [inline] |
template<class T >
T * Gecode::Gist::NodeAllocatorBase< T >::best | ( | int | i | ) | const [inline] |
template<class T >
void Gecode::Gist::NodeAllocatorBase< T >::setBest | ( | int | i, | |
int | b | |||
) | [inline] |
template<class T >
bool Gecode::Gist::NodeAllocatorBase< T >::bab | ( | void | ) | const [inline] |
The documentation for this class was generated from the following files:
- gecode/gist/node.hh (Revision: 11349)
- gecode/gist/node.hpp (Revision: 11981)