Gecode::Search::Par::Path< Tracer >::Edge Class Reference
Search tree edge for recomputation More...
#include <path.hh>
Public Member Functions | |
| Edge (void) | |
| Default constructor. | |
| Edge (Space *s, Space *c, unsigned int nid) | |
| Edge for space s with clone c (possibly NULL). | |
| Space * | space (void) const |
| Return space for edge. | |
| void | space (Space *s) |
| Set space to s. | |
| const Choice * | choice (void) const |
| Return choice. | |
| unsigned int | alt (void) const |
| Return number for alternatives. | |
| unsigned int | truealt (void) const |
| Return true number for alternatives (excluding lao optimization). | |
| bool | rightmost (void) const |
| Test whether current alternative is rightmost. | |
| bool | lao (void) const |
| Test whether current alternative was LAO. | |
| bool | work (void) const |
| Test whether there is an alternative that can be stolen. | |
| void | next (void) |
| Move to next alternative. | |
| unsigned int | steal (void) |
| Steal rightmost alternative and return its number. | |
| unsigned int | nid (void) const |
| Return node identifier. | |
| void | dispose (void) |
| Free memory for edge. | |
Protected Attributes | |
| Space * | _space |
| Space corresponding to this edge (might be NULL). | |
| unsigned int | _alt |
| Current alternative. | |
| unsigned int | _alt_max |
| Number of alternatives left. | |
| const Choice * | _choice |
| Choice. | |
| ID | _nid |
| Node identifier. | |
Detailed Description
template<class Tracer>
class Gecode::Search::Par::Path< Tracer >::Edge
Search tree edge for recomputation
Definition at line 66 of file path.hh.
Constructor & Destructor Documentation
template<class Tracer >
| Gecode::Search::Par::Path< Tracer >::Edge::Edge | ( | void | ) | [inline] |
template<class Tracer >
| Gecode::Search::Par::Path< Tracer >::Edge::Edge | ( | Space * | s, | |
| Space * | c, | |||
| unsigned int | nid | |||
| ) | [inline] |
Member Function Documentation
template<class Tracer >
| Space * Gecode::Search::Par::Path< Tracer >::Edge::space | ( | void | ) | const [inline] |
template<class Tracer >
| void Gecode::Search::Par::Path< Tracer >::Edge::space | ( | Space * | s | ) | [inline] |
template<class Tracer >
| const Choice * Gecode::Search::Par::Path< Tracer >::Edge::choice | ( | void | ) | const [inline] |
template<class Tracer >
| unsigned int Gecode::Search::Par::Path< Tracer >::Edge::alt | ( | void | ) | const [inline] |
template<class Tracer >
| unsigned int Gecode::Search::Par::Path< Tracer >::Edge::truealt | ( | void | ) | const [inline] |
template<class Tracer >
| bool Gecode::Search::Par::Path< Tracer >::Edge::rightmost | ( | void | ) | const [inline] |
template<class Tracer >
| bool Gecode::Search::Par::Path< Tracer >::Edge::lao | ( | void | ) | const [inline] |
template<class Tracer >
| bool Gecode::Search::Par::Path< Tracer >::Edge::work | ( | void | ) | const [inline] |
template<class Tracer >
| void Gecode::Search::Par::Path< Tracer >::Edge::next | ( | void | ) | [inline] |
template<class Tracer >
| unsigned int Gecode::Search::Par::Path< Tracer >::Edge::steal | ( | void | ) | [inline] |
template<class Tracer >
| unsigned int Gecode::Search::Par::Path< Tracer >::Edge::nid | ( | void | ) | const [inline] |
template<class Tracer >
| void Gecode::Search::Par::Path< Tracer >::Edge::dispose | ( | void | ) | [inline] |
Member Data Documentation
template<class Tracer >
Space* Gecode::Search::Par::Path< Tracer >::Edge::_space [protected] |
template<class Tracer >
unsigned int Gecode::Search::Par::Path< Tracer >::Edge::_alt [protected] |
template<class Tracer >
unsigned int Gecode::Search::Par::Path< Tracer >::Edge::_alt_max [protected] |
template<class Tracer >
const Choice* Gecode::Search::Par::Path< Tracer >::Edge::_choice [protected] |
template<class Tracer >
ID Gecode::Search::Par::Path< Tracer >::Edge::_nid [protected] |
The documentation for this class was generated from the following files:
