
Brancher that stops exploration in Gist More...
#include <stopbrancher.hh>
Public Member Functions | |
| virtual bool | status (const Space &) const |
| Check status of brancher, return true if alternatives left. More... | |
| virtual Choice * | choice (Space &) |
| Return choice. More... | |
| virtual Choice * | choice (const Space &home, Archive &) |
| Return choice. More... | |
| virtual ExecStatus | commit (Space &, const Choice &, unsigned int) |
| Perform commit for choice _c and alternative a. More... | |
| virtual void | print (const Space &home, const Gecode::Choice &c, unsigned int, std::ostream &o) const |
| Print explanation. More... | |
| virtual Actor * | copy (Space &home, bool share) |
| Copy brancher. More... | |
| virtual size_t | dispose (Space &) |
| Delete brancher and return its size. More... | |
Public Member Functions inherited from Gecode::Brancher | |
| unsigned int | id (void) const |
| Return unsigned brancher id. More... | |
| virtual NGL * | ngl (Space &home, const Choice &c, unsigned int a) const |
| Create no-good literal for choice c and alternative a. More... | |
Public Member Functions inherited from Gecode::Actor | |
Static Public Member Functions | |
| static void | post (Home home) |
| Post brancher. More... | |
Static Public Member Functions inherited from Gecode::Actor | |
| static void * | operator new (size_t s, Space &home) |
| Allocate memory from space. More... | |
| static void | operator delete (void *p, Space &home) |
| No-op for exceptions. More... | |
Protected Member Functions | |
| StopBrancher (Home home) | |
| Construct brancher. More... | |
| StopBrancher (Space &home, bool share, StopBrancher &b) | |
| Copy constructor. More... | |
Protected Member Functions inherited from Gecode::Brancher | |
| Brancher (Home home) | |
| Constructor for creation. More... | |
| Brancher (Space &home, bool share, Brancher &b) | |
| Constructor for cloning b. More... | |
Protected Attributes | |
| bool | done |
| Flag whether brancher has been executed. More... | |
Brancher that stops exploration in Gist
Definition at line 55 of file stopbrancher.hh.
|
protected |
Construct brancher.
Definition at line 52 of file stopbrancher.cpp.
|
protected |
Copy constructor.
Definition at line 54 of file stopbrancher.cpp.
|
virtual |
Check status of brancher, return true if alternatives left.
Implements Gecode::Brancher.
Definition at line 58 of file stopbrancher.cpp.
|
virtual |
Perform commit for choice _c and alternative a.
Implements Gecode::Brancher.
Definition at line 71 of file stopbrancher.cpp.
|
virtual |
Print explanation.
Reimplemented from Gecode::Brancher.
Definition at line 77 of file stopbrancher.cpp.
|
static |
Post brancher.
Definition at line 86 of file stopbrancher.cpp.
|
virtual |
Delete brancher and return its size.
Reimplemented from Gecode::Actor.
Definition at line 90 of file stopbrancher.cpp.
|
protected |
Flag whether brancher has been executed.
Definition at line 58 of file stopbrancher.hh.