Gecode::ViewSelChooseTbl< Choose, Merit > Class Template Reference
[Generic view selection for brancher based on view and value selection]
Choose view according to merit taking tie-break limit into account. More...
#include <brancher-view-sel.hpp>
Protected Types | |
| typedef ViewSelChoose< Choose, Merit >::Val | Val |
| Type of merit. | |
| typedef ViewSelChoose< Choose, Merit >::View | View |
| Define the view type. | |
| typedef ViewSelChoose< Choose, Merit >::BranchFilter | BranchFilter |
| The branch filter that corresponds to the view type. | |
Protected Attributes | |
| BranchTbl | tbl |
| Tie-break limit function. | |
Initialization | |
|
| |
| ViewSelChooseTbl (Space &home, const VarBranch &vb) | |
| Constructor for initialization. | |
| ViewSelChooseTbl (Space &home, bool shared, ViewSelChooseTbl< Choose, Merit > &vs) | |
| Constructor for copying during cloning. | |
View selection and tie breaking | |
|
| |
| 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. | |
Detailed Description
template<class Choose, class Merit>
class Gecode::ViewSelChooseTbl< Choose, Merit >
Choose view according to merit taking tie-break limit into account.
Definition at line 246 of file brancher-view-sel.hpp.
Member Typedef Documentation
typedef ViewSelChoose<Choose,Merit>::Val Gecode::ViewSelChooseTbl< Choose, Merit >::Val [protected] |
Type of merit.
Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.
Definition at line 248 of file brancher-view-sel.hpp.
typedef ViewSelChoose<Choose,Merit>::View Gecode::ViewSelChooseTbl< Choose, Merit >::View [protected] |
Define the view type.
Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.
Definition at line 249 of file brancher-view-sel.hpp.
typedef ViewSelChoose<Choose,Merit>::BranchFilter Gecode::ViewSelChooseTbl< Choose, Merit >::BranchFilter [protected] |
The branch filter that corresponds to the view type.
Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.
Definition at line 250 of file brancher-view-sel.hpp.
Constructor & Destructor Documentation
| Gecode::ViewSelChooseTbl< Choose, Merit >::ViewSelChooseTbl | ( | Space & | home, | |
| const VarBranch & | vb | |||
| ) | [inline] |
Constructor for initialization.
Definition at line 673 of file brancher-view-sel.hpp.
| Gecode::ViewSelChooseTbl< Choose, Merit >::ViewSelChooseTbl | ( | Space & | home, | |
| bool | shared, | |||
| ViewSelChooseTbl< Choose, Merit > & | vs | |||
| ) | [inline] |
Constructor for copying during cloning.
Definition at line 680 of file brancher-view-sel.hpp.
Member Function Documentation
| void Gecode::ViewSelChooseTbl< Choose, Merit >::ties | ( | Space & | home, | |
| ViewArray< View > & | x, | |||
| int | s, | |||
| int * | ties, | |||
| int & | n | |||
| ) | [inline, virtual] |
Select ties from x starting from s.
Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.
Definition at line 686 of file brancher-view-sel.hpp.
| void Gecode::ViewSelChooseTbl< Choose, Merit >::ties | ( | Space & | home, | |
| ViewArray< View > & | x, | |||
| int | s, | |||
| int * | ties, | |||
| int & | n, | |||
| BranchFilter | bf | |||
| ) | [inline, virtual] |
Select ties from x starting from s.
Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.
Definition at line 725 of file brancher-view-sel.hpp.
| void Gecode::ViewSelChooseTbl< Choose, Merit >::brk | ( | Space & | home, | |
| ViewArray< View > & | x, | |||
| int * | ties, | |||
| int & | n | |||
| ) | [inline, virtual] |
Break ties in x and update to new ties.
Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.
Definition at line 771 of file brancher-view-sel.hpp.
Member Data Documentation
BranchTbl Gecode::ViewSelChooseTbl< Choose, Merit >::tbl [protected] |
Tie-break limit function.
Definition at line 254 of file brancher-view-sel.hpp.
The documentation for this class was generated from the following file:
- gecode/kernel/brancher-view-sel.hpp (Revision: 13166)
