Gecode::Search::Seq::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 | leftmost (void) const |
Test whether current alternative is leftmost. | |
bool | rightmost (void) const |
Test whether current alternative is rightmost. | |
void | next (void) |
Move to next alternative. | |
bool | lao (void) const |
Test whether current alternative was LAO. | |
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. | |
const Choice * | _choice |
Choice. | |
ID | _nid |
Node identifier. |
Detailed Description
template<class Tracer>
class Gecode::Search::Seq::Path< Tracer >::Edge
Search tree edge for recomputation
Definition at line 66 of file path.hh.
Constructor & Destructor Documentation
template<class Tracer >
Gecode::Search::Seq::Path< Tracer >::Edge::Edge | ( | void | ) | [inline] |
template<class Tracer >
Gecode::Search::Seq::Path< Tracer >::Edge::Edge | ( | Space * | s, | |
Space * | c, | |||
unsigned int | nid | |||
) | [inline] |
Member Function Documentation
template<class Tracer >
Space * Gecode::Search::Seq::Path< Tracer >::Edge::space | ( | void | ) | const [inline] |
template<class Tracer >
void Gecode::Search::Seq::Path< Tracer >::Edge::space | ( | Space * | s | ) | [inline] |
template<class Tracer >
const Choice * Gecode::Search::Seq::Path< Tracer >::Edge::choice | ( | void | ) | const [inline] |
template<class Tracer >
unsigned int Gecode::Search::Seq::Path< Tracer >::Edge::alt | ( | void | ) | const [inline] |
template<class Tracer >
unsigned int Gecode::Search::Seq::Path< Tracer >::Edge::truealt | ( | void | ) | const [inline] |
template<class Tracer >
bool Gecode::Search::Seq::Path< Tracer >::Edge::leftmost | ( | void | ) | const [inline] |
template<class Tracer >
bool Gecode::Search::Seq::Path< Tracer >::Edge::rightmost | ( | void | ) | const [inline] |
template<class Tracer >
void Gecode::Search::Seq::Path< Tracer >::Edge::next | ( | void | ) | [inline] |
template<class Tracer >
bool Gecode::Search::Seq::Path< Tracer >::Edge::lao | ( | void | ) | const [inline] |
template<class Tracer >
unsigned int Gecode::Search::Seq::Path< Tracer >::Edge::nid | ( | void | ) | const [inline] |
template<class Tracer >
void Gecode::Search::Seq::Path< Tracer >::Edge::dispose | ( | void | ) | [inline] |
Member Data Documentation
template<class Tracer >
Space* Gecode::Search::Seq::Path< Tracer >::Edge::_space [protected] |
template<class Tracer >
unsigned int Gecode::Search::Seq::Path< Tracer >::Edge::_alt [protected] |
template<class Tracer >
const Choice* Gecode::Search::Seq::Path< Tracer >::Edge::_choice [protected] |
template<class Tracer >
ID Gecode::Search::Seq::Path< Tracer >::Edge::_nid [protected] |
The documentation for this class was generated from the following files: