Generic brancher by view selection. More...
#include <brancher-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... | |
![]() | |
unsigned int | id (void) const |
Return unsigned brancher id. More... | |
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... | |
![]() | |
virtual Actor * | copy (Space &home, bool share)=0 |
Create copy. More... | |
Protected Types | |
typedef BranchTraits< typename View::VarType >::Filter | BranchFilter |
The branch filter that corresponds to the var type. 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, bool shared, ViewBrancher< View, n > &b) | |
Constructor for cloning b. More... | |
ViewBrancher (Home home, ViewArray< View > &x, ViewSel< View > *vs[n], BranchFilter bf) | |
Constructor for creation. More... | |
![]() | |
Brancher (Home home) | |
Constructor for creation. More... | |
Brancher (Space &home, bool share, 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... | |
BranchFilter | bf |
Branch filter function. More... | |
Additional Inherited Members | |
![]() | |
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... | |
Generic brancher by view selection.
Defined for views of type View and n view selectors for tie-breaking.
Definition at line 79 of file brancher-view.hpp.
|
protected |
The branch filter that corresponds to the var type.
Definition at line 82 of file brancher-view.hpp.
|
inlineprotected |
Constructor for cloning b.
Definition at line 154 of file brancher-view.hpp.
|
inlineprotected |
Constructor for creation.
Definition at line 140 of file brancher-view.hpp.
|
inlineprotected |
Return position information.
Definition at line 185 of file brancher-view.hpp.
|
inlineprotected |
Return view according to position information p.
Definition at line 225 of file brancher-view.hpp.
|
virtual |
Check status of brancher, return true if alternatives left.
Implements Gecode::Brancher.
Definition at line 164 of file brancher-view.hpp.
|
inlinevirtual |
Delete brancher and return its size.
Reimplemented from Gecode::Actor.
Reimplemented in Gecode::Int::LDSB::LDSBBrancher< View, n, Val, a >, and Gecode::ViewValBrancher< View, n, Val, a >.
Definition at line 231 of file brancher-view.hpp.
|
protected |
Views to branch on.
Definition at line 84 of file brancher-view.hpp.
|
mutableprotected |
Unassigned views start at x[start].
Definition at line 86 of file brancher-view.hpp.
|
protected |
View selection objects.
Definition at line 88 of file brancher-view.hpp.
|
protected |
Branch filter function.
Definition at line 90 of file brancher-view.hpp.