Generated on Thu Apr 11 13:59:45 2019 for Gecode by doxygen 1.6.3

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 <view-sel.hpp>

List of all members.

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 >::Var 
Var
 The corresponding variable type.

Protected Attributes

SharedData< BranchTbltbl
 Tie-break limit function.

Initialization



 ViewSelChooseTbl (Space &home, const VarBranch< Var > &vb)
 Constructor for initialization.
 ViewSelChooseTbl (Space &home, 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, BrancherFilter< View > &f)
 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.

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.

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 255 of file view-sel.hpp.


Member Typedef Documentation

template<class Choose, class Merit>
typedef ViewSelChoose<Choose,Merit>::Val Gecode::ViewSelChooseTbl< Choose, Merit >::Val [protected]

Type of merit.

Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.

Definition at line 257 of file view-sel.hpp.

template<class Choose, class Merit>
typedef ViewSelChoose<Choose,Merit>::View Gecode::ViewSelChooseTbl< Choose, Merit >::View [protected]

Define the view type.

Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.

Definition at line 258 of file view-sel.hpp.

template<class Choose, class Merit>
typedef ViewSelChoose<Choose,Merit>::Var Gecode::ViewSelChooseTbl< Choose, Merit >::Var [protected]

The corresponding variable type.

Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.

Definition at line 259 of file view-sel.hpp.


Constructor & Destructor Documentation

template<class Choose , class Merit >
Gecode::ViewSelChooseTbl< Choose, Merit >::ViewSelChooseTbl ( Space home,
const VarBranch< Var > &  vb 
) [inline]

Constructor for initialization.

Definition at line 702 of file view-sel.hpp.

template<class Choose, class Merit>
Gecode::ViewSelChooseTbl< Choose, Merit >::ViewSelChooseTbl ( Space home,
ViewSelChooseTbl< Choose, Merit > &  vs 
) [inline]

Constructor for copying during cloning.

Definition at line 712 of file view-sel.hpp.


Member Function Documentation

template<class Choose , class Merit >
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 718 of file view-sel.hpp.

template<class Choose , class Merit >
void Gecode::ViewSelChooseTbl< Choose, Merit >::ties ( Space home,
ViewArray< View > &  x,
int  s,
int *  ties,
int &  n,
BrancherFilter< View > &  f 
) [inline, virtual]

Select ties from x starting from s.

Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.

Definition at line 758 of file view-sel.hpp.

template<class Choose , class Merit >
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 801 of file view-sel.hpp.

template<class Choose , class Merit >
bool Gecode::ViewSelChooseTbl< Choose, Merit >::notice ( void   )  const [inline, virtual]

Whether dispose must always be called (that is, notice is needed).

Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.

Definition at line 834 of file view-sel.hpp.

template<class Choose , class Merit >
void Gecode::ViewSelChooseTbl< Choose, Merit >::dispose ( Space home  )  [inline, virtual]

Delete view selection.

Reimplemented from Gecode::ViewSelChoose< Choose, Merit >.

Definition at line 839 of file view-sel.hpp.


Member Data Documentation

template<class Choose, class Merit>
SharedData<BranchTbl> Gecode::ViewSelChooseTbl< Choose, Merit >::tbl [protected]

Tie-break limit function.

Definition at line 263 of file view-sel.hpp.


The documentation for this class was generated from the following file: