Generic brancher by view selection. More...
#include <view.hpp>
Public Member Functions | |
virtual bool | status (const Space &home) const |
Check status of brancher, return true if alternatives left. | |
virtual size_t | dispose (Space &home) |
Delete brancher and return its size. | |
![]() | |
virtual const Choice * | choice (Space &home)=0 |
Return choice. | |
virtual const Choice * | choice (const Space &home, Archive &e)=0 |
Return choice from e. | |
virtual ExecStatus | commit (Space &home, const Choice &c, unsigned int a)=0 |
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. | |
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. | |
Protected Types | |
typedef View::VarType | Var |
The corresponding variable. | |
Protected Member Functions | |
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. | |
Protected Attributes | |
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. | |
Additional Inherited Members | |
![]() | |
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. | |
Generic brancher by view selection.
Defined for views of type View and n view selectors for tie-breaking.
|
protected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
virtual |
Check status of brancher, return true if alternatives left.
Implements Gecode::Brancher.
|
inlinevirtual |
Delete brancher and return its size.
Reimplemented from Gecode::Actor.
Reimplemented in Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >, Gecode::Int::LDSB::LDSBBrancher< View, n, Val, a, Filter, Print >, and Gecode::ViewValBrancher< View, n, Val, a, Filter, Print >.
|
protected |
|
mutableprotected |
|
protected |
|
protected |