
Brancher for integer and Boolean views. More...
#include <branch.hh>
Public Member Functions | |
| virtual const Choice * | choice (Space &home) |
| Return choice. | |
| virtual Actor * | copy (Space &home) |
| Perform cloning. | |
| virtual size_t | dispose (Space &home) |
| Delete brancher and return its size. | |
Public Member Functions inherited from Gecode::FlatZinc::IntBoolBrancherBase | |
| virtual bool | status (const Space &home) const |
| Check status of brancher, return true if alternatives left. | |
| virtual const Choice * | choice (const Space &home, Archive &e) |
| Return choice. | |
| virtual ExecStatus | commit (Space &home, const Choice &c, unsigned int b) |
| Perform commit for choice c and alternative b. | |
| virtual NGL * | ngl (Space &home, const Choice &c, unsigned int b) const |
| Create no-good literal for choice c and alternative b. | |
| virtual void | print (const Space &home, const Choice &c, unsigned int b, std::ostream &o) const |
| Print branch for choice c and alternative b. | |
Public Member Functions inherited from Gecode::Brancher | |
| 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. | |
Public Member Functions inherited from Gecode::Actor | |
| virtual | ~Actor (void) |
| To avoid warnings. | |
Static Public Member Functions | |
| static void | post (Home home, ViewArray< Int::IntView > x, ViewArray< Int::BoolView > y, Merit &m, ValSelCommitBase< Int::IntView, int > *xvsc, ValSelCommitBase< Int::BoolView, int > *yvsc) |
| Post brancher. | |
Static Public Member Functions inherited from Gecode::Actor | |
| 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 | |
| IntBoolBrancher (Space &home, IntBoolBrancher &b) | |
| Constructor for cloning b. | |
| IntBoolBrancher (Home home, ViewArray< Int::IntView > x, ViewArray< Int::BoolView > y, Merit &m, ValSelCommitBase< Int::IntView, int > *xvsc, ValSelCommitBase< Int::BoolView, int > *yvsc) | |
| Constructor for creation. | |
Protected Member Functions inherited from Gecode::FlatZinc::IntBoolBrancherBase | |
| IntBoolBrancherBase (Space &home, IntBoolBrancherBase &b) | |
| Constructor for cloning b. | |
| IntBoolBrancherBase (Home home, ViewArray< Int::IntView > x, ViewArray< Int::BoolView > y, ValSelCommitBase< Int::IntView, int > *xvsc, ValSelCommitBase< Int::BoolView, int > *yvsc) | |
| Constructor for creation. | |
Protected Member Functions inherited from Gecode::Brancher | |
| Brancher (Home home) | |
| Constructor for creation. | |
| Brancher (Space &home, Brancher &b) | |
| Constructor for cloning b. | |
Protected Attributes | |
| Merit | merit |
| Selection by maximal merit. | |
Protected Attributes inherited from Gecode::FlatZinc::IntBoolBrancherBase | |
| ViewArray< Int::IntView > | x |
| Integer views to branch on. | |
| ViewArray< Int::BoolView > | y |
| Boolean views to branch on. | |
| int | start |
| Unassigned views start here (might be in x or y) | |
| ValSelCommitBase< Int::IntView, int > * | xvsc |
| Integer value selection and commit object. | |
| ValSelCommitBase< Int::BoolView, int > * | yvsc |
| Boolean value selection and commit object. | |
Brancher for integer and Boolean views.
|
inlineprotected |
Constructor for cloning b.
Definition at line 358 of file branch.hpp.
|
inlineprotected |
Constructor for creation.
Definition at line 335 of file branch.hpp.
|
virtual |
Return choice.
Implements Gecode::FlatZinc::IntBoolBrancherBase.
Definition at line 371 of file branch.hpp.
|
virtual |
|
inlinestatic |
Post brancher.
Definition at line 346 of file branch.hpp.
|
virtual |
Delete brancher and return its size.
Reimplemented from Gecode::FlatZinc::IntBoolBrancherBase.
Definition at line 413 of file branch.hpp.
|
protected |