Radiotherapy::NestedSearch Class Reference
Nested search on the q variables. More...
Public Member Functions | |
| virtual bool | status (const Space &) const |
| Check status of branching, return true if alternatives left. | |
| IntVarArgs | getRow (Radiotherapy *row, int i) |
| virtual BranchingDesc * | description (Space &home) |
| Return branching description. | |
| virtual ExecStatus | commit (Space &, const BranchingDesc &d, unsigned int) |
| Commit for branching description d and alternative a. | |
| virtual Actor * | copy (Space &home, bool share) |
| Copy branching. | |
| size_t | dispose (Space &home) |
| Dispose member function. | |
Static Public Member Functions | |
| static void | post (Space &home) |
| Post branching. | |
Detailed Description
Nested search on the q variables.Definition at line 206 of file radiotherapy.cpp.
Member Function Documentation
| virtual bool Radiotherapy::NestedSearch::status | ( | const Space & | home | ) | const [inline, virtual] |
Check status of branching, return true if alternatives left.
This method is called when Space::status is called, it determines whether to continue branching with this branching or move on to the (possibly) next branching.
Implements Gecode::Branching.
Definition at line 257 of file radiotherapy.cpp.
| IntVarArgs Radiotherapy::NestedSearch::getRow | ( | Radiotherapy * | row, | |
| int | i | |||
| ) | [inline] |
Definition at line 261 of file radiotherapy.cpp.
| virtual BranchingDesc* Radiotherapy::NestedSearch::description | ( | Space & | home | ) | [inline, virtual] |
Return branching description.
Note that this method relies on the fact that it is called immediately after a previous call to status. Moreover, the member function can only be called once.
Implements Gecode::Branching.
Definition at line 272 of file radiotherapy.cpp.
| virtual ExecStatus Radiotherapy::NestedSearch::commit | ( | Space & | home, | |
| const BranchingDesc & | d, | |||
| unsigned | a | |||
| ) | [inline, virtual] |
Commit for branching description d and alternative a.
The current branching in the space home performs a commit from the information provided by the branching description d and the alternative a.
Implements Gecode::Branching.
Definition at line 304 of file radiotherapy.cpp.
| static void Radiotherapy::NestedSearch::post | ( | Space & | home | ) | [inline, static] |
| size_t Radiotherapy::NestedSearch::dispose | ( | Space & | home | ) | [inline, virtual] |
Dispose member function.
Reimplemented from Gecode::Actor.
Definition at line 316 of file radiotherapy.cpp.
The documentation for this class was generated from the following file:
- examples/radiotherapy.cpp (Revision: 9095)
