Choose view according to merit. More...
#include <brancher-view-sel.hpp>
Protected Types | |
typedef ViewSel< typename Merit::View >::View | View |
Define the view type. | |
typedef ViewSel< typename Merit::View >::BranchFilter | BranchFilter |
The branch filter that corresponds to the view type. | |
typedef Merit::Val | Val |
Type of merit. | |
Protected Attributes | |
Choose | c |
How to choose. | |
Merit | m |
The merit object used. | |
Initialization | |
ViewSelChoose (Space &home, const VarBranch &vb) | |
Constructor for creation. | |
ViewSelChoose (Space &home, bool shared, ViewSelChoose< Choose, Merit > &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 from s and return its position. | |
virtual int | select (Space &home, ViewArray< View > &x, int s, BranchFilter bf) |
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) |
Select ties from x starting from s. | |
virtual void | ties (Space &home, ViewArray< View > &x, int s, int *ties, int &n, BranchFilter bf) |
Select ties from x starting from 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 views with positions in ties. | |
Resource management and cloning | |
virtual bool | notice (void) const |
Whether dispose must always be called (that is, notice is needed) | |
virtual void | dispose (Space &home) |
Delete view selection. |
Choose view according to merit.
Definition at line 198 of file brancher-view-sel.hpp.
typedef ViewSel<typename Merit::View>::View Gecode::ViewSelChoose< Choose, Merit >::View [protected] |
Define the view type.
Reimplemented from Gecode::ViewSel< Merit::View >.
Reimplemented in Gecode::ViewSelChooseTbl< Choose, Merit >, Gecode::ViewSelChooseTbl< ChooseMin, Merit >, and Gecode::ViewSelChooseTbl< ChooseMax, Merit >.
Definition at line 200 of file brancher-view-sel.hpp.
typedef ViewSel<typename Merit::View>::BranchFilter Gecode::ViewSelChoose< Choose, Merit >::BranchFilter [protected] |
The branch filter that corresponds to the view type.
Reimplemented from Gecode::ViewSel< Merit::View >.
Reimplemented in Gecode::ViewSelChooseTbl< Choose, Merit >, Gecode::ViewSelChooseTbl< ChooseMin, Merit >, and Gecode::ViewSelChooseTbl< ChooseMax, Merit >.
Definition at line 201 of file brancher-view-sel.hpp.
typedef Merit::Val Gecode::ViewSelChoose< Choose, Merit >::Val [protected] |
Type of merit.
Reimplemented in Gecode::ViewSelChooseTbl< Choose, Merit >, Gecode::ViewSelChooseTbl< ChooseMin, Merit >, and Gecode::ViewSelChooseTbl< ChooseMax, Merit >.
Definition at line 203 of file brancher-view-sel.hpp.
Gecode::ViewSelChoose< Choose, Merit >::ViewSelChoose | ( | Space & | home, |
const VarBranch & | vb | ||
) | [inline] |
Constructor for creation.
Definition at line 526 of file brancher-view-sel.hpp.
Gecode::ViewSelChoose< Choose, Merit >::ViewSelChoose | ( | Space & | home, |
bool | shared, | ||
ViewSelChoose< Choose, Merit > & | vs | ||
) | [inline] |
Constructor for copying during cloning.
Definition at line 531 of file brancher-view-sel.hpp.
int Gecode::ViewSelChoose< Choose, Merit >::select | ( | Space & | home, |
ViewArray< View > & | x, | ||
int | s | ||
) | [virtual] |
Select a view from x starting from s and return its position.
Definition at line 537 of file brancher-view-sel.hpp.
int Gecode::ViewSelChoose< Choose, Merit >::select | ( | Space & | home, |
ViewArray< View > & | x, | ||
int | s, | ||
BranchFilter | bf | ||
) | [virtual] |
Select a view from x starting from s and return its position.
Definition at line 554 of file brancher-view-sel.hpp.
void Gecode::ViewSelChoose< Choose, Merit >::ties | ( | Space & | home, |
ViewArray< View > & | x, | ||
int | s, | ||
int * | ties, | ||
int & | n | ||
) | [virtual] |
Select ties from x starting from s.
Reimplemented in Gecode::ViewSelChooseTbl< Choose, Merit >, Gecode::ViewSelChooseTbl< ChooseMin, Merit >, and Gecode::ViewSelChooseTbl< ChooseMax, Merit >.
Definition at line 574 of file brancher-view-sel.hpp.
void Gecode::ViewSelChoose< Choose, Merit >::ties | ( | Space & | home, |
ViewArray< View > & | x, | ||
int | s, | ||
int * | ties, | ||
int & | n, | ||
BranchFilter | bf | ||
) | [virtual] |
Select ties from x starting from s.
Reimplemented in Gecode::ViewSelChooseTbl< Choose, Merit >, Gecode::ViewSelChooseTbl< ChooseMin, Merit >, and Gecode::ViewSelChooseTbl< ChooseMax, Merit >.
Definition at line 597 of file brancher-view-sel.hpp.
void Gecode::ViewSelChoose< Choose, Merit >::brk | ( | Space & | home, |
ViewArray< View > & | x, | ||
int * | ties, | ||
int & | n | ||
) | [virtual] |
Break ties in x and update to new ties.
Reimplemented in Gecode::ViewSelChooseTbl< Choose, Merit >, Gecode::ViewSelChooseTbl< ChooseMin, Merit >, and Gecode::ViewSelChooseTbl< ChooseMax, Merit >.
Definition at line 622 of file brancher-view-sel.hpp.
int Gecode::ViewSelChoose< Choose, Merit >::select | ( | Space & | home, |
ViewArray< View > & | x, | ||
int * | ties, | ||
int | n | ||
) | [virtual] |
Select a view from x considering views with positions in ties.
Definition at line 645 of file brancher-view-sel.hpp.
bool Gecode::ViewSelChoose< Choose, Merit >::notice | ( | void | ) | const [virtual] |
Whether dispose must always be called (that is, notice is needed)
Reimplemented from Gecode::ViewSel< Merit::View >.
Definition at line 660 of file brancher-view-sel.hpp.
void Gecode::ViewSelChoose< Choose, Merit >::dispose | ( | Space & | home | ) | [virtual] |
Delete view selection.
Reimplemented from Gecode::ViewSel< Merit::View >.
Definition at line 666 of file brancher-view-sel.hpp.
Choose Gecode::ViewSelChoose< Choose, Merit >::c [protected] |
How to choose.
Definition at line 205 of file brancher-view-sel.hpp.
Merit Gecode::ViewSelChoose< Choose, Merit >::m [protected] |
The merit object used.
Definition at line 207 of file brancher-view-sel.hpp.