Gecode::Search::ReCoNode Class Reference
#include <search.hh>
List of all members.
Detailed Description
Search tree node for recomputation
Definition at line 224 of file search.hh.
|
Public Member Functions |
| ReCoNode (Space *s, Space *c, unsigned int alt) |
| Node for space s with clone c (possibly NULL) and alternatives alt.
|
Space * | space (void) const |
| Return space for node.
|
unsigned int | alt (void) const |
| Return number for alternatives.
|
BranchingDesc * | desc (void) const |
| Return branching description.
|
void | space (Space *s) |
| Set space to s.
|
void | alt (unsigned int a) |
| Set number of alternatives to a.
|
void | desc (BranchingDesc *d) |
| Set branching description to d.
|
bool | rightmost (void) const |
| Test whether current alternative is rightmost.
|
void | next (void) |
| Movre to next alternative.
|
unsigned int | share (void) |
| Return the rightmost alternative and remove it.
|
void | dispose (void) |
| Free memory for node.
|
Protected Attributes |
Space * | _space |
| Space corresponding to this node (might be NULL).
|
unsigned int | _alt |
| Current alternative.
|
unsigned int | _last |
| Last alternative.
|
BranchingDesc * | _desc |
| Braching description.
|
Constructor & Destructor Documentation
Gecode::Search::ReCoNode::ReCoNode |
( |
Space * |
s, |
|
|
Space * |
c, |
|
|
unsigned int |
alt | |
|
) |
| | [inline] |
Node for space s with clone c (possibly NULL) and alternatives alt.
Definition at line 30 of file reco-stack.icc.
Member Function Documentation
Space * Gecode::Search::ReCoNode::space |
( |
void |
|
) |
const [inline] |
unsigned int Gecode::Search::ReCoNode::alt |
( |
void |
|
) |
const [inline] |
BranchingDesc * Gecode::Search::ReCoNode::desc |
( |
void |
|
) |
const [inline] |
void Gecode::Search::ReCoNode::space |
( |
Space * |
s |
) |
[inline] |
void Gecode::Search::ReCoNode::alt |
( |
unsigned int |
a |
) |
[inline] |
void Gecode::Search::ReCoNode::desc |
( |
BranchingDesc * |
d |
) |
[inline] |
bool Gecode::Search::ReCoNode::rightmost |
( |
void |
|
) |
const [inline] |
Test whether current alternative is rightmost.
Definition at line 53 of file reco-stack.icc.
void Gecode::Search::ReCoNode::next |
( |
void |
|
) |
[inline] |
unsigned int Gecode::Search::ReCoNode::share |
( |
void |
|
) |
[inline] |
Return the rightmost alternative and remove it.
Definition at line 77 of file reco-stack.icc.
void Gecode::Search::ReCoNode::dispose |
( |
void |
|
) |
[inline] |
Member Data Documentation
Space corresponding to this node (might be NULL).
Definition at line 227 of file search.hh.
Current alternative.
Definition at line 229 of file search.hh.
Braching description.
Definition at line 233 of file search.hh.
The documentation for this class was generated from the following files: