Symmetry-breaking brancher with generic view and value selection. More...
#include <ldsb.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 b) |
Perform commit for choice c and alternative b. | |
virtual Actor * | copy (Space &home) |
Perform cloning. | |
virtual size_t | dispose (Space &home) |
Delete brancher and return its size. | |
![]() | |
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 bool | status (const Space &home) const |
Check status of brancher, return true if alternatives left. | |
![]() | |
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 (void) |
To avoid warnings. | |
Static Public Member Functions | |
static void | post (Home home, ViewArray< View > &x, ViewSel< View > *vs[n], ValSelCommitBase< View, Val > *vsc, SymmetryImp< View > **syms, int nsyms, BranchFilter< Var > bf, VarValPrint< Var, Val > vvp) |
Brancher post function. | |
![]() | |
static void | post (Home home, ViewArray< View > &x, ViewSel< View > *vs[n], ValSelCommitBase< View, Val > *vsc, BranchFilter< Var > bf, VarValPrint< Var, Val > vvp) |
Brancher post function. | |
![]() | |
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. | |
Public Attributes | |
SymmetryImp< View > ** | _syms |
Array of symmetry implementations. | |
int | _nsyms |
Number of symmetry implementations. | |
int | _prevPos |
Protected Member Functions | |
LDSBBrancher (Space &home, LDSBBrancher &b) | |
Constructor for cloning b. | |
LDSBBrancher (Home home, ViewArray< View > &x, ViewSel< View > *vs[n], ValSelCommitBase< View, Val > *vsc, SymmetryImp< View > **syms, int nsyms, BranchFilter< Var > bf, VarValPrint< Var, Val > vvp) | |
Constructor for creation. | |
![]() | |
ViewValBrancher (Space &home, ViewValBrancher &b) | |
Constructor for cloning b. | |
ViewValBrancher (Home home, ViewArray< View > &x, ViewSel< View > *vs[n], ValSelCommitBase< View, Val > *vsc, BranchFilter< Var > bf, VarValPrint< Var, Val > vvp) | |
Constructor for creation. | |
![]() | |
Pos | pos (Space &home) |
Return position information. | |
View | view (const Pos &p) const |
Return view according to position information p. | |
ViewBrancher (Space &home, ViewBrancher< View, Filter, n > &b) | |
Constructor for cloning b. | |
ViewBrancher (Home home, ViewArray< View > &x, ViewSel< View > *vs[n], BranchFilter< Var > bf) | |
Constructor for creation. | |
![]() | |
Brancher (Home home) | |
Constructor for creation. | |
Brancher (Space &home, Brancher &b) | |
Constructor for cloning b. | |
Additional Inherited Members | |
![]() | |
typedef View::VarType | Var |
The corresponding variable. | |
![]() | |
typedef View::VarType | Var |
The corresponding variable. | |
![]() | |
ValSelCommitBase< View, Val > * | vsc |
Value selection and commit object. | |
p | |
Print function. | |
![]() | |
ViewArray< View > | x |
Views to branch on. | |
int | start |
Unassigned views start at x[start]. | |
ViewSel< View > * | vs [n] |
View selection objects. | |
Filter | f |
Filter function. | |
Symmetry-breaking brancher with generic view and value selection.
Implements view-based branching for an array of views (of type View) and value (of type Val).
|
inlineprotected |
Constructor for cloning b.
Definition at line 124 of file brancher.hpp.
|
protected |
Constructor for creation.
|
virtual |
Return choice.
Reimplemented from Gecode::ViewValBrancher< View, n, Val, a, Filter, Print >.
Reimplemented in Gecode::Set::LDSB::LDSBSetBrancher< View, n, Val, a, Filter, Print >.
Definition at line 148 of file brancher.hpp.
|
virtual |
Return choice.
Reimplemented from Gecode::ViewValBrancher< View, n, Val, a, Filter, Print >.
Definition at line 199 of file brancher.hpp.
|
virtual |
Perform commit for choice c and alternative b.
Reimplemented from Gecode::ViewValBrancher< View, n, Val, a, Filter, Print >.
Reimplemented in Gecode::Set::LDSB::LDSBSetBrancher< View, n, Val, a, Filter, Print >.
Definition at line 232 of file brancher.hpp.
|
virtual |
Perform cloning.
Reimplemented from Gecode::ViewValBrancher< View, n, Val, a, Filter, Print >.
Reimplemented in Gecode::Set::LDSB::LDSBSetBrancher< View, n, Val, a, Filter, Print >.
Definition at line 138 of file brancher.hpp.
|
virtual |
Delete brancher and return its size.
Reimplemented from Gecode::ViewValBrancher< View, n, Val, a, Filter, Print >.
Definition at line 267 of file brancher.hpp.
|
inlinestatic |
Brancher post function.
Definition at line 111 of file brancher.hpp.
SymmetryImp<View>** Gecode::Int::LDSB::LDSBBrancher< View, n, Val, a, Filter, Print >::_syms |
int Gecode::Int::LDSB::LDSBBrancher< View, n, Val, a, Filter, Print >::_nsyms |
int Gecode::Int::LDSB::LDSBBrancher< View, n, Val, a, Filter, Print >::_prevPos |