Gecode::FlatZinc::IntBoolBrancherBase Class Reference
Base-class for brancher for integer and Boolean views. More...
#include <branch.hh>
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)=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. | |
Protected Member Functions | |
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 Attributes | |
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. |
Detailed Description
Base-class for brancher for integer and Boolean views.
Definition at line 264 of file branch.hh.
Constructor & Destructor Documentation
Gecode::FlatZinc::IntBoolBrancherBase::IntBoolBrancherBase | ( | Space & | home, | |
IntBoolBrancherBase & | b | |||
) | [inline, protected] |
Constructor for cloning b.
Definition at line 316 of file branch.hpp.
Gecode::FlatZinc::IntBoolBrancherBase::IntBoolBrancherBase | ( | Home | home, | |
ViewArray< Int::IntView > | x, | |||
ViewArray< Int::BoolView > | y, | |||
ValSelCommitBase< Int::IntView, int > * | xvsc, | |||
ValSelCommitBase< Int::BoolView, int > * | yvsc | |||
) | [inline, protected] |
Constructor for creation.
Definition at line 305 of file branch.hpp.
Member Function Documentation
bool Gecode::FlatZinc::IntBoolBrancherBase::status | ( | const Space & | home | ) | const [virtual] |
Check status of brancher, return true if alternatives left.
Implements Gecode::Brancher.
Definition at line 47 of file branch.cpp.
Return choice.
Implements Gecode::Brancher.
Implemented in Gecode::FlatZinc::IntBoolBrancher< Merit >.
ExecStatus Gecode::FlatZinc::IntBoolBrancherBase::commit | ( | Space & | home, | |
const Choice & | c, | |||
unsigned int | b | |||
) | [virtual] |
Perform commit for choice c and alternative b.
Implements Gecode::Brancher.
Definition at line 65 of file branch.cpp.
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.
Definition at line 81 of file branch.cpp.
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.
Definition at line 95 of file branch.cpp.
size_t Gecode::FlatZinc::IntBoolBrancherBase::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete brancher and return its size.
Reimplemented from Gecode::Actor.
Reimplemented in Gecode::FlatZinc::IntBoolBrancher< Merit >.
Definition at line 324 of file branch.hpp.
Member Data Documentation
int Gecode::FlatZinc::IntBoolBrancherBase::start [mutable, protected] |
ValSelCommitBase<Int::IntView,int>* Gecode::FlatZinc::IntBoolBrancherBase::xvsc [protected] |
ValSelCommitBase<Int::BoolView,int>* Gecode::FlatZinc::IntBoolBrancherBase::yvsc [protected] |
The documentation for this class was generated from the following files:
- gecode/flatzinc/branch.hh
- gecode/flatzinc/branch.cpp
- gecode/flatzinc/branch.hpp