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. | |
Public Member Functions inherited from Gecode::ViewBrancher< IntView, Filter, n > | |
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< IntView > &x, ViewSel< IntView > *vs[n], IntBranchFilter bf, IntVarValPrint vvp) |
Post function for creation. | |
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. |
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 Member Functions inherited from Gecode::ViewBrancher< IntView, Filter, n > | |
Pos | pos (Space &home) |
Return position information. | |
IntView | view (const Pos &p) const |
Return view according to position information p. | |
ViewBrancher (Space &home, ViewBrancher< IntView, Filter, n > &b) | |
Constructor for cloning b. | |
Protected Member Functions inherited from Gecode::Brancher | |
Brancher (Home home) | |
Constructor for creation. | |
Brancher (Space &home, Brancher &b) | |
Constructor for cloning b. |
Protected Attributes | |
p | |
Print function. | |
Protected Attributes inherited from Gecode::ViewBrancher< IntView, Filter, n > | |
ViewArray< IntView > | x |
Views to branch on. | |
int | start |
Unassigned views start at x[start]. | |
ViewSel< IntView > * | vs [n] |
View selection objects. | |
Filter | f |
Filter function. |
Additional Inherited Members | |
Protected Types inherited from Gecode::ViewBrancher< IntView, Filter, n > | |
typedef IntView::VarType | Var |
The corresponding variable. |
Brancher by view and values selection
|
inlineprotected |
Constructor for cloning b.
Definition at line 111 of file view-values.hpp.
|
inlineprotected |
Constructor for creation.
Definition at line 89 of file view-values.hpp.
|
virtual |
|
virtual |
|
virtual |
Perform commit for choice c and alternative a.
Implements Gecode::Brancher.
Definition at line 143 of file view-values.hpp.
|
virtual |
Create no-good literal for choice c and alternative a.
Reimplemented from Gecode::Brancher.
Definition at line 154 of file view-values.hpp.
|
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.
|
virtual |
|
inlinestatic |
Post function for creation.
Definition at line 101 of file view-values.hpp.
|
inlinevirtual |
Delete brancher and return its size.
Reimplemented from Gecode::ViewBrancher< IntView, Filter, n >.
Definition at line 182 of file view-values.hpp.
|
protected |