Brancher for calling a function More...
Classes | |
class | Description |
Minimal brancher description storing no information. More... | |
Public Member Functions | |
virtual bool | status (const Space &) const |
Check status of brancher, return true if alternatives left. More... | |
virtual const Choice * | choice (Space &) |
Return choice. More... | |
virtual const Choice * | choice (const Space &, Archive &) |
Return choice. More... | |
virtual ExecStatus | commit (Space &home, const Choice &, unsigned int) |
Perform commit. More... | |
virtual Actor * | copy (Space &home, bool share) |
Copy brancher. More... | |
![]() | |
unsigned int | id (void) const |
Return unsigned brancher id. More... | |
Static Public Member Functions | |
static void | post (Home home, void(*f)(Space &)) |
Post brancher. More... | |
Protected Member Functions | |
FunctionBranch (Home home, void(*f0)(Space &)) | |
Construct brancher. More... | |
FunctionBranch (Space &home, bool share, FunctionBranch &b) | |
Copy constructor. More... | |
![]() | |
Brancher (Home home) | |
Constructor for creation. More... | |
Brancher (Space &home, bool share, Brancher &b) | |
Constructor for cloning b. More... | |
Protected Attributes | |
void(* | f )(Space &) |
Function to call. More... | |
bool | done |
Call function just once. More... | |
Brancher for calling a function
Definition at line 56 of file branch.cpp.
Construct brancher.
Definition at line 75 of file branch.cpp.
|
inlineprotected |
Copy constructor.
Definition at line 78 of file branch.cpp.
|
inlinevirtual |
Check status of brancher, return true if alternatives left.
Implements Gecode::Brancher.
Definition at line 82 of file branch.cpp.
|
inlinevirtual |
Post brancher.
Definition at line 106 of file branch.cpp.
|
protected |
Function to call.
Definition at line 71 of file branch.cpp.
|
protected |
Call function just once.
Definition at line 73 of file branch.cpp.