Gecode::FunctionBranch Class Reference
Branching for calling a function. More...
Classes | |
| class | Description |
| Minimal branching description storing no information. More... | |
Public Member Functions | |
| virtual bool | status (const Space &) const |
| Check status of branching, return true if alternatives left. | |
| virtual const BranchingDesc * | description (Space &) |
| Return branching description. | |
| virtual ExecStatus | commit (Space &home, const BranchingDesc &, unsigned int) |
| Perform commit. | |
| virtual Actor * | copy (Space &home, bool share) |
| Copy branching. | |
Static Public Member Functions | |
| static void | post (Space &home, void(*f)(Space &)) |
| Post branching. | |
Protected Member Functions | |
| FunctionBranch (Space &home, void(*f0)(Space &)) | |
| Construct branching. | |
| FunctionBranch (Space &home, bool share, FunctionBranch &b) | |
| Copy constructor. | |
Protected Attributes | |
| void(* | f )(Space &) |
| Function to call. | |
| bool | done |
| Call function just once. | |
Detailed Description
Branching for calling a function.Definition at line 56 of file branch.cpp.
Constructor & Destructor Documentation
| Gecode::FunctionBranch::FunctionBranch | ( | Space & | home, | |
| bool | share, | |||
| FunctionBranch & | b | |||
| ) | [inline, protected] |
Member Function Documentation
| virtual bool Gecode::FunctionBranch::status | ( | const Space & | ) | const [inline, virtual] |
Check status of branching, return true if alternatives left.
Implements Gecode::Branching.
Definition at line 78 of file branch.cpp.
| virtual const BranchingDesc* Gecode::FunctionBranch::description | ( | Space & | ) | [inline, virtual] |
Return branching description.
Implements Gecode::Branching.
Definition at line 82 of file branch.cpp.
| virtual ExecStatus Gecode::FunctionBranch::commit | ( | Space & | home, | |
| const BranchingDesc & | , | |||
| unsigned int | ||||
| ) | [inline, virtual] |
Member Data Documentation
void(* Gecode::FunctionBranch::f)(Space &) [protected] |
Function to call.
bool Gecode::FunctionBranch::done [protected] |
The documentation for this class was generated from the following file:
- gecode/kernel/branch.cpp (Revision: 8370)
