- Gecode
- ViewBrancher

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. More... | |
| virtual size_t | dispose (Space &home) |
| Delete brancher and return its size. More... | |
Public Member Functions inherited from Gecode::Brancher | |
| virtual const Choice * | choice (Space &home)=0 |
| Return choice. More... | |
| virtual const Choice * | choice (const Space &home, Archive &e)=0 |
| Return choice from e. More... | |
| virtual ExecStatus | commit (Space &home, const Choice &c, unsigned int a)=0 |
| Commit for choice c and alternative a. More... | |
| virtual NGL * | ngl (Space &home, const Choice &c, unsigned int a) const |
| Create no-good literal for choice c and alternative a. More... | |
| virtual void | print (const Space &home, const Choice &c, unsigned int a, std::ostream &o) const |
| Print branch for choice c and alternative a. More... | |
| unsigned int | id (void) const |
| Return brancher id. More... | |
| BrancherGroup | group (void) const |
| Return group brancher belongs to. More... | |
| void | group (BrancherGroup g) |
| Add brancher to group g. More... | |
Public Member Functions inherited from Gecode::Actor | |
| virtual Actor * | copy (Space &home)=0 |
| Create copy. More... | |
| virtual | ~Actor (void) |
| To avoid warnings. More... | |
Protected Types | |
| typedef View::VarType | Var |
| The corresponding variable. More... | |
Protected Member Functions | |
| Pos | pos (Space &home) |
| Return position information. More... | |
| View | view (const Pos &p) const |
| Return view according to position information p. More... | |
| ViewBrancher (Space &home, ViewBrancher< View, Filter, n > &b) | |
| Constructor for cloning b. More... | |
| ViewBrancher (Home home, ViewArray< View > &x, ViewSel< View > *vs[n], BranchFilter< Var > bf) | |
| Constructor for creation. More... | |
Protected Member Functions inherited from Gecode::Brancher | |
| Brancher (Home home) | |
| Constructor for creation. More... | |
| Brancher (Space &home, Brancher &b) | |
| Constructor for cloning b. More... | |
Protected Attributes | |
| ViewArray< View > | x |
| Views to branch on. More... | |
| int | start |
| Unassigned views start at x[start]. More... | |
| ViewSel< View > * | vs [n] |
| View selection objects. More... | |
| Filter | f |
| Filter function. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Gecode::Actor | |
| static void * | operator new (size_t s, Space &home) |
| Allocate memory from space. More... | |
| static void | operator delete (void *p, Space &home) |
| No-op for exceptions. More... | |
| static void * | operator new (size_t s) |
| Not used. More... | |
| static void | operator delete (void *p) |
| Not used. More... | |
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::ViewValBrancher< View, n, Val, a, Filter, Print >, Gecode::Int::LDSB::LDSBBrancher< View, n, Val, a, Filter, Print >, and Gecode::Int::Branch::ViewValuesBrancher< n, min, Filter, Print >.
|
protected |
|
mutableprotected |
|
protected |
|
protected |