Node allocator.
More...
#include <node.hh>
List of all members.
Classes |
| class | Block |
| | Blocks of nodes. More...
|
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
Constructor & Destructor Documentation
| Gecode::Gist::NodeAllocatorBase::NodeAllocatorBase |
( |
bool |
bab | ) |
|
Constructor.
Definition at line 54 of file node.hpp.
| Gecode::Gist::NodeAllocatorBase::~NodeAllocatorBase |
( |
void |
| ) |
|
Destructor.
Definition at line 62 of file node.hpp.
Member Function Documentation
| int Gecode::Gist::NodeAllocatorBase::allocate |
( |
int |
p | ) |
[inline] |
Allocate new node with parent p.
Definition at line 70 of file node.hpp.
| int Gecode::Gist::NodeAllocatorBase::allocate |
( |
Space * |
root | ) |
[inline] |
Allocate new root node for space root.
Definition at line 81 of file node.hpp.
| T * Gecode::Gist::NodeAllocatorBase::operator[] |
( |
int |
i | ) |
const [inline] |
Return node for index i.
Definition at line 92 of file node.hpp.
| T * Gecode::Gist::NodeAllocatorBase::best |
( |
int |
i | ) |
const [inline] |
Return index of best node before i.
Definition at line 100 of file node.hpp.
| void Gecode::Gist::NodeAllocatorBase::setBest |
( |
int |
i, |
|
|
int |
b |
|
) |
| [inline] |
Set index of best node before i to b.
Definition at line 109 of file node.hpp.
| bool Gecode::Gist::NodeAllocatorBase::bab |
( |
void |
| ) |
const [inline] |
Return branch-and-bound flag.
Definition at line 117 of file node.hpp.
The documentation for this class was generated from the following files: