Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print > Class Template Reference
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) |
Perform cloning. | |
virtual size_t | dispose (Space &home) |
Delete brancher and return its size. | |
Static Public Member Functions | |
static void | post (Home home, ViewArray< IntView > &x, ViewSel< IntView > *vs[n], IntBranchFilter bf, IntVarValPrint vvp) |
Post function for creation. | |
Protected Member Functions | |
ViewValuesBrancher (Space &home, ViewValuesBrancher &b) | |
Constructor for cloning b. | |
ViewValuesBrancher (Home home, ViewArray< IntView > &x, ViewSel< IntView > *vs[n], IntBranchFilter bf, IntVarValPrint vvp) | |
Constructor for creation. | |
Protected Attributes | |
p | |
Print function. |
Detailed Description
template<int n, bool min, class Filter, class Print>
class Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >
Brancher by view and values selection
Definition at line 626 of file branch.hh.
Constructor & Destructor Documentation
Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::ViewValuesBrancher | ( | Space & | home, | |
ViewValuesBrancher< n, min, Filter, Print > & | b | |||
) | [inline, protected] |
Constructor for cloning b.
Definition at line 112 of file view-values.hpp.
Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::ViewValuesBrancher | ( | Home | home, | |
ViewArray< IntView > & | x, | |||
ViewSel< IntView > * | vs[n], | |||
IntBranchFilter | bf, | |||
IntVarValPrint | vvp | |||
) | [inline, protected] |
Constructor for creation.
Definition at line 90 of file view-values.hpp.
Member Function Documentation
const Choice * Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::choice | ( | Space & | home | ) | [inline, virtual] |
const Choice * Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::choice | ( | const Space & | home, | |
Archive & | e | |||
) | [inline, virtual] |
ExecStatus Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::commit | ( | Space & | home, | |
const Choice & | c, | |||
unsigned int | a | |||
) | [inline, virtual] |
Perform commit for choice c and alternative a.
Implements Gecode::Brancher.
Definition at line 143 of file view-values.hpp.
NGL * Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::ngl | ( | Space & | home, | |
const Choice & | c, | |||
unsigned int | a | |||
) | const [inline, virtual] |
Create no-good literal for choice c and alternative a.
Reimplemented from Gecode::Brancher.
Definition at line 154 of file view-values.hpp.
void Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::print | ( | const Space & | home, | |
const Choice & | c, | |||
unsigned int | a, | |||
std::ostream & | o | |||
) | const [inline, 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 165 of file view-values.hpp.
Actor * Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::copy | ( | Space & | home | ) | [inline, virtual] |
void Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::post | ( | Home | home, | |
ViewArray< IntView > & | x, | |||
ViewSel< IntView > * | vs[n], | |||
IntBranchFilter | bf, | |||
IntVarValPrint | vvp | |||
) | [inline, static] |
Post function for creation.
Definition at line 101 of file view-values.hpp.
size_t Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::dispose | ( | Space & | home | ) | [inline, virtual] |
Delete brancher and return its size.
Reimplemented from Gecode::ViewBrancher< IntView, Filter, n >.
Definition at line 182 of file view-values.hpp.
Member Data Documentation
Print Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >::p [protected] |
The documentation for this class was generated from the following files:
- gecode/int/branch.hh
- gecode/int/branch/view-values.hpp