Radiotherapy::NestedSearch Class Reference
Nested search on the q variables. More...
Public Member Functions | |
virtual bool | status (const Space &) const |
Check status of brancher, return true if alternatives left. | |
IntVarArgs | getRow (Radiotherapy *row, int i) |
virtual Gecode::Choice * | choice (Space &home) |
Return choice. | |
virtual Choice * | choice (const Space &, Archive &e) |
Return choice. | |
virtual ExecStatus | commit (Space &, const Gecode::Choice &_c, unsigned int) |
Perform commit for choice _c and alternative a. | |
virtual void | print (const Space &, const Gecode::Choice &_c, unsigned int, std::ostream &o) const |
Print explanation. | |
virtual Actor * | copy (Space &home) |
Copy brancher. | |
size_t | dispose (Space &home) |
Dispose member function. | |
Static Public Member Functions | |
static void | post (Home home) |
Post brancher. |
Detailed Description
Nested search on the q variables.
Definition at line 203 of file radiotherapy.cpp.
Member Function Documentation
virtual bool Radiotherapy::NestedSearch::status | ( | const Space & | home | ) | const [inline, virtual] |
Check status of brancher, return true if alternatives left.
This method is called when Space::status is called, it determines whether to continue branching with this brancher or move on to the (possibly) next brancher.
Implements Gecode::Brancher.
Definition at line 254 of file radiotherapy.cpp.
IntVarArgs Radiotherapy::NestedSearch::getRow | ( | Radiotherapy * | row, | |
int | i | |||
) | [inline] |
Definition at line 258 of file radiotherapy.cpp.
virtual Gecode::Choice* Radiotherapy::NestedSearch::choice | ( | Space & | home | ) | [inline, virtual] |
virtual ExecStatus Radiotherapy::NestedSearch::commit | ( | Space & | , | |
const Gecode::Choice & | _c, | |||
unsigned int | ||||
) | [inline, virtual] |
Perform commit for choice _c and alternative a.
Implements Gecode::Brancher.
Definition at line 307 of file radiotherapy.cpp.
virtual void Radiotherapy::NestedSearch::print | ( | const Space & | , | |
const Gecode::Choice & | _c, | |||
unsigned int | , | |||
std::ostream & | o | |||
) | const [inline, virtual] |
Print explanation.
Reimplemented from Gecode::Brancher.
Definition at line 311 of file radiotherapy.cpp.
static void Radiotherapy::NestedSearch::post | ( | Home | home | ) | [inline, static] |
Post brancher.
Definition at line 322 of file radiotherapy.cpp.
size_t Radiotherapy::NestedSearch::dispose | ( | Space & | home | ) | [inline, virtual] |
Dispose member function.
Reimplemented from Gecode::Actor.
Definition at line 326 of file radiotherapy.cpp.
The documentation for this class was generated from the following file:
- examples/radiotherapy.cpp