Select the first unassigned view. More...
#include <view-sel.hpp>
Protected Types | |
typedef ViewSel< View >::Var | Var |
Initialization | |
ViewSelNone (Space &home, const VarBranch< Var > &vb) | |
Constructor for creation. | |
ViewSelNone (Space &home, ViewSelNone< View > &vs) | |
Constructor for copying during cloning. | |
View selection and tie breaking | |
virtual int | select (Space &home, ViewArray< View > &x, int s) |
Select a view from x starting at s and return its position. | |
virtual int | select (Space &home, ViewArray< View > &x, int s, BrancherFilter< View > &f) |
Select a view from x starting at s and return its position. | |
virtual void | ties (Space &home, ViewArray< View > &x, int s, int *ties, int &n) |
Select ties from x starting at s. | |
virtual void | ties (Space &home, ViewArray< View > &x, int s, int *ties, int &n, BrancherFilter< View > &f) |
Select ties from x starting at s. | |
virtual void | brk (Space &home, ViewArray< View > &x, int *ties, int &n) |
Break ties in x and update to new ties. | |
virtual int | select (Space &home, ViewArray< View > &x, int *ties, int n) |
Select a view from x considering view with positions in ties. | |
Resource management and cloning | |
virtual ViewSel< View > * | copy (Space &home) |
Create copy during cloning. | |
Additional Inherited Members | |
![]() | |
typedef View | View |
Define the view type. | |
typedef View::VarType | Var |
The corresponding variable type. | |
![]() | |
ViewSel (Space &home, const VarBranch< Var > &vb) | |
Constructor for creation. | |
ViewSel (Space &home, ViewSel< View > &vs) | |
Constructor for copying during cloning. | |
virtual int | select (Space &home, ViewArray< View > &x, int s, BrancherNoFilter< View > &f) |
Select a view from x starting from s and return its position. | |
virtual void | ties (Space &home, ViewArray< View > &x, int s, int *ties, int &n, BrancherNoFilter< View > &f) |
Select ties from x starting from s. | |
virtual bool | notice (void) const |
Whether dispose must always be called (that is, notice is needed) | |
virtual void | dispose (Space &home) |
Dispose view selection. | |
virtual | ~ViewSel (void) |
Unused destructor. | |
![]() | |
static void * | operator new (size_t s, Space &home) |
Allocate memory from space. | |
static void | operator delete (void *p, Space &home) |
Return memory to space. | |
static void | operator delete (void *p) |
Needed for exceptions. | |
Select the first unassigned view.
Definition at line 109 of file view-sel.hpp.
|
protected |
Definition at line 111 of file view-sel.hpp.
|
inline |
Constructor for creation.
Definition at line 421 of file view-sel.hpp.
|
inline |
Constructor for copying during cloning.
Definition at line 425 of file view-sel.hpp.
|
virtual |
Select a view from x starting at s and return its position.
Implements Gecode::ViewSel< View >.
Definition at line 429 of file view-sel.hpp.
|
virtual |
Select a view from x starting at s and return its position.
Implements Gecode::ViewSel< View >.
Definition at line 434 of file view-sel.hpp.
|
virtual |
Select ties from x starting at s.
Implements Gecode::ViewSel< View >.
Definition at line 440 of file view-sel.hpp.
|
virtual |
Select ties from x starting at s.
Implements Gecode::ViewSel< View >.
Definition at line 451 of file view-sel.hpp.
|
virtual |
Break ties in x and update to new ties.
Implements Gecode::ViewSel< View >.
Definition at line 463 of file view-sel.hpp.
|
virtual |
Select a view from x considering view with positions in ties.
Implements Gecode::ViewSel< View >.
Definition at line 468 of file view-sel.hpp.
Create copy during cloning.
Implements Gecode::ViewSel< View >.
Definition at line 473 of file view-sel.hpp.