Brancher for calling a function More...
Classes | |
class | Description |
Minimal brancher description storing no information. More... | |
Public Member Functions | |
virtual bool | status (const Space &home) const |
Check status of brancher, return true if alternatives left. | |
virtual const Choice * | choice (Space &home) |
Return choice. | |
virtual const Choice * | choice (const Space &home, Archive &a) |
Return choice. | |
virtual ExecStatus | commit (Space &home, const Choice &ch, unsigned int a) |
Perform commit. | |
virtual void | print (const Space &, const Choice &, unsigned int, std::ostream &o) const |
Print explanation. | |
virtual Actor * | copy (Space &home) |
Copy brancher. | |
virtual size_t | dispose (Space &home) |
Dispose brancher. | |
![]() | |
virtual NGL * | ngl (Space &home, const Choice &c, unsigned int a) const |
Create no-good literal for choice c and alternative a. | |
unsigned int | id (void) const |
Return brancher id. | |
BrancherGroup | group (void) const |
Return group brancher belongs to. | |
void | group (BrancherGroup g) |
Add brancher to group g. | |
![]() | |
virtual | ~Actor (void) |
To avoid warnings. | |
Static Public Member Functions | |
static void | post (Home home, std::function< void(Space &home)> f) |
Post brancher. | |
![]() | |
static void * | operator new (size_t s, Space &home) |
Allocate memory from space. | |
static void | operator delete (void *p, Space &home) |
No-op for exceptions. | |
static void * | operator new (size_t s) |
Not used. | |
static void | operator delete (void *p) |
Not used. | |
Protected Member Functions | |
FunctionBranch (Home home, std::function< void(Space &home)> f0) | |
Construct brancher. | |
FunctionBranch (Space &home, FunctionBranch &b) | |
Copy constructor. | |
![]() | |
Brancher (Home home) | |
Constructor for creation. | |
Brancher (Space &home, Brancher &b) | |
Constructor for cloning b. | |
Protected Attributes | |
SharedData< std::function< void(Space &home)> > | f |
Function to call. | |
bool | done |
Call function just once. | |
Brancher for calling a function
Definition at line 41 of file function.cpp.
|
inlineprotected |
Construct brancher.
Definition at line 88 of file function.cpp.
|
inlineprotected |
Copy constructor.
Definition at line 96 of file function.cpp.
|
virtual |
Check status of brancher, return true if alternatives left.
Implements Gecode::Brancher.
Definition at line 100 of file function.cpp.
|
virtual |
|
virtual |
Print explanation.
Reimplemented from Gecode::Brancher.
Definition at line 120 of file function.cpp.
|
inlinestatic |
Post brancher.
Definition at line 129 of file function.cpp.
|
virtual |
|
protected |
Function to call.
Definition at line 52 of file function.cpp.
|
protected |
Call function just once.
Definition at line 54 of file function.cpp.