Gecode::Search::Par::Path< Tracer >::Edge Class Reference
Search tree edge for recomputation More...
#include <gecode/search/par/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 nullptr). | |
| 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 nullptr). | |
| 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
class Gecode::Search::Par::Path< Tracer >::Edge
Search tree edge for recomputation
Constructor & Destructor Documentation
◆ Edge() [1/2]
template<class Tracer>
|
inline |
◆ Edge() [2/2]
template<class Tracer>
|
inline |
Member Function Documentation
◆ space() [1/2]
template<class Tracer>
|
inline |
◆ space() [2/2]
template<class Tracer>
|
inline |
◆ choice()
template<class Tracer>
|
inline |
◆ alt()
template<class Tracer>
|
inline |
◆ truealt()
template<class Tracer>
|
inline |
◆ rightmost()
template<class Tracer>
|
inline |
◆ lao()
template<class Tracer>
|
inline |
◆ work()
template<class Tracer>
|
inline |
◆ next()
template<class Tracer>
|
inline |
◆ steal()
template<class Tracer>
|
inline |
◆ nid()
template<class Tracer>
|
inline |
◆ dispose()
template<class Tracer>
|
inline |
Member Data Documentation
◆ _space
template<class Tracer>
|
protected |
◆ _alt
template<class Tracer>
|
protected |
◆ _alt_max
template<class Tracer>
|
protected |
◆ _choice
template<class Tracer>
|
protected |
◆ _nid
template<class Tracer>
|
protected |
The documentation for this class was generated from the following files:
