Brancher by view and values selection More...
#include <branch.hh>
Public Member Functions | |
virtual const Choice * | choice (Space &home) |
Return choice. | |
virtual const Choice * | choice (const Space &home, Archive &e) |
Return choice. | |
virtual ExecStatus | commit (Space &home, const Choice &c, unsigned int a) |
Perform commit for choice c and alternative a. | |
virtual NGL * | ngl (Space &home, const Choice &c, unsigned int a) const |
Create no-good literal for choice c and alternative a. | |
virtual void | print (const Space &home, const Choice &c, unsigned int a, std::ostream &o) const |
Print branch for choice c and alternative a. | |
virtual Actor * | copy (Space &home, bool share) |
Perform cloning. | |
Static Public Member Functions | |
static BrancherHandle | post (Home home, ViewArray< IntView > &x, ViewSel< IntView > *vs[n], BranchFilter bf, IntVarValPrint vvp) |
Constructor for creation. | |
Protected Member Functions | |
ViewValuesBrancher (Space &home, bool shared, ViewValuesBrancher &b) | |
Constructor for cloning b. | |
ViewValuesBrancher (Home home, ViewArray< IntView > &x, ViewSel< IntView > *vs[n], BranchFilter bf, IntVarValPrint vvp) | |
Constructor for creation. | |
Protected Attributes | |
IntVarValPrint | vvp |
Print function. |
Brancher by view and values selection
Gecode::Int::Branch::ViewValuesBrancher< n, min >::ViewValuesBrancher | ( | Space & | home, |
bool | shared, | ||
ViewValuesBrancher< n, min > & | b | ||
) | [inline, protected] |
Constructor for cloning b.
Definition at line 113 of file view-values.hpp.
Gecode::Int::Branch::ViewValuesBrancher< n, min >::ViewValuesBrancher | ( | Home | home, |
ViewArray< IntView > & | x, | ||
ViewSel< IntView > * | vs[n], | ||
BranchFilter | bf, | ||
IntVarValPrint | vvp | ||
) | [inline, protected] |
Constructor for creation.
Definition at line 97 of file view-values.hpp.
ExecStatus Gecode::Int::Branch::ViewValuesBrancher< n, min >::commit | ( | Space & | home, |
const Choice & | c, | ||
unsigned int | a | ||
) | [virtual] |
Perform commit for choice c and alternative a.
Implements Gecode::Brancher.
Definition at line 142 of file view-values.hpp.
NGL * Gecode::Int::Branch::ViewValuesBrancher< n, min >::ngl | ( | Space & | home, |
const Choice & | c, | ||
unsigned int | a | ||
) | const [virtual] |
Create no-good literal for choice c and alternative a.
Reimplemented from Gecode::Brancher.
Definition at line 153 of file view-values.hpp.
void Gecode::Int::Branch::ViewValuesBrancher< n, min >::print | ( | const Space & | home, |
const Choice & | c, | ||
unsigned int | a, | ||
std::ostream & | o | ||
) | const [virtual] |
Print branch for choice c and alternative a.
Prints an explanation of the alternative a of choice c on the stream o.
Reimplemented from Gecode::Brancher.
Definition at line 164 of file view-values.hpp.
BrancherHandle Gecode::Int::Branch::ViewValuesBrancher< n, min >::post | ( | Home | home, |
ViewArray< IntView > & | x, | ||
ViewSel< IntView > * | vs[n], | ||
BranchFilter | bf, | ||
IntVarValPrint | vvp | ||
) | [static] |
Constructor for creation.
Definition at line 104 of file view-values.hpp.
IntVarValPrint Gecode::Int::Branch::ViewValuesBrancher< n, min >::vvp [protected] |