Base-class for brancher for integer and Boolean views.
More...
#include <gecode/flatzinc/branch.hh>
|
| virtual bool | status (const Space &home) const |
| | Check status of brancher, return true if alternatives left.
|
| virtual const Choice * | choice (Space &home)=0 |
| | Return choice.
|
| 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.
|
| virtual size_t | dispose (Space &home) |
| | Delete brancher and return its size.
|
| 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 * | copy (Space &home)=0 |
| | Create copy.
|
| virtual | ~Actor (void) |
| | To avoid warnings.
|
Base-class for brancher for integer and Boolean views.
Definition at line 264 of file branch.hh.
◆ IntBoolBrancherBase() [1/2]
| Gecode::FlatZinc::IntBoolBrancherBase::IntBoolBrancherBase |
( |
Space & | home, |
|
|
IntBoolBrancherBase & | b ) |
|
inlineprotected |
Constructor for cloning b.
Definition at line 315 of file branch.hpp.
◆ IntBoolBrancherBase() [2/2]
Constructor for creation.
Definition at line 304 of file branch.hpp.
◆ status()
| virtual bool Gecode::FlatZinc::IntBoolBrancherBase::status |
( |
const Space & | home | ) |
const |
|
virtual |
Check status of brancher, return true if alternatives left.
Implements Gecode::Brancher.
◆ choice() [1/2]
| virtual const Choice * Gecode::FlatZinc::IntBoolBrancherBase::choice |
( |
Space & | home | ) |
|
|
pure virtual |
◆ choice() [2/2]
| virtual const Choice * Gecode::FlatZinc::IntBoolBrancherBase::choice |
( |
const Space & | home, |
|
|
Archive & | e ) |
|
virtual |
◆ commit()
| virtual ExecStatus Gecode::FlatZinc::IntBoolBrancherBase::commit |
( |
Space & | home, |
|
|
const Choice & | c, |
|
|
unsigned int | b ) |
|
virtual |
◆ ngl()
| virtual NGL * Gecode::FlatZinc::IntBoolBrancherBase::ngl |
( |
Space & | home, |
|
|
const Choice & | c, |
|
|
unsigned int | b ) const |
|
virtual |
Create no-good literal for choice c and alternative b.
Reimplemented from Gecode::Brancher.
◆ print()
| virtual void Gecode::FlatZinc::IntBoolBrancherBase::print |
( |
const Space & | home, |
|
|
const Choice & | c, |
|
|
unsigned int | b, |
|
|
std::ostream & | o ) const |
|
virtual |
Print branch for choice c and alternative b.
Reimplemented from Gecode::Brancher.
◆ dispose()
| size_t Gecode::FlatZinc::IntBoolBrancherBase::dispose |
( |
Space & | home | ) |
|
|
inlinevirtual |
Integer views to branch on.
Definition at line 267 of file branch.hh.
Boolean views to branch on.
Definition at line 269 of file branch.hh.
◆ start
| int Gecode::FlatZinc::IntBoolBrancherBase::start |
|
mutableprotected |
Unassigned views start here (might be in x or y).
Definition at line 271 of file branch.hh.
◆ xvsc
Integer value selection and commit object.
Definition at line 273 of file branch.hh.
◆ yvsc
Boolean value selection and commit object.
Definition at line 275 of file branch.hh.
The documentation for this class was generated from the following files: