Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0
Gecode::ViewSelMax< Merit > Class Template Reference

Select view with largest merit. More...

#include <view-sel.hpp>

Initialization

 ViewSelMax (Space &home, const VarBranch< Var > &vb)
 Constructor for initialization.
 
 ViewSelMax (Space &home, ViewSelMax< Merit > &vs)
 Constructor for copying during cloning.
 

Resource management and cloning

virtual ViewSel< View > * copy (Space &home)
 Create copy during cloning.
 

Additional Inherited Members

- Public Types inherited from Gecode::ViewSel< Merit::View >
typedef Merit::View View
 Define the view type.
 
typedef View::VarType Var
 The corresponding variable type.
 
- Public Member Functions inherited from Gecode::ViewSelChoose< ChooseMax, Merit >
 ViewSelChoose (Space &home, const VarBranch< Var > &vb)
 Constructor for creation.
 
 ViewSelChoose (Space &home, ViewSelChoose< ChooseMax, Merit > &vs)
 Constructor for copying during cloning.
 
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, BrancherFilter< View > &f)
 Select a view from x starting from s and return its position.
 
virtual int select (Space &home, ViewArray< View > &x, int *ties, int n)
 Select a view from x considering views with positions in ties.
 
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.
 
virtual bool notice (void) const
 Whether dispose must always be called (that is, notice is needed)
 
virtual void dispose (Space &home)
 Delete view selection.
 
- Public Member Functions inherited from Gecode::ViewSel< Merit::View >
 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)=0
 Select a view from x starting from s and return its position.
 
virtual int select (Space &home, ViewArray< View > &x, int s, BrancherFilter< View > &f)=0
 Select a view from x starting from s and return its position.
 
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 int select (Space &home, ViewArray< View > &x, int *ties, int n)=0
 Select a view from x considering views with positions in ties.
 
virtual void ties (Space &home, ViewArray< View > &x, int s, int *ties, int &n)=0
 Select ties from x starting from s.
 
virtual void ties (Space &home, ViewArray< View > &x, int s, int *ties, int &n, BrancherFilter< View > &f)=0
 Select ties from x starting from s.
 
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 void brk (Space &home, ViewArray< View > &x, int *ties, int &n)=0
 Break ties in x and update to new ties.
 
virtual ~ViewSel (void)
 Unused destructor.
 
- Static Public Member Functions inherited from Gecode::ViewSel< Merit::View >
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.
 
- Protected Types inherited from Gecode::ViewSelChoose< ChooseMax, Merit >
typedef ViewSel< typenameMerit::View >::Var Var
 
typedef ViewSel< typenameMerit::View >::View View
 
typedef Merit::Val Val
 Type of merit.
 
- Protected Attributes inherited from Gecode::ViewSelChoose< ChooseMax, Merit >
ChooseMax c
 How to choose.
 
Merit m
 The merit object used.
 

Detailed Description

template<class Merit>
class Gecode::ViewSelMax< Merit >

Select view with largest merit.

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

Constructor & Destructor Documentation

◆ ViewSelMax() [1/2]

template<class Merit >
Gecode::ViewSelMax< Merit >::ViewSelMax ( Space & home,
const VarBranch< Var > & vb )
inline

Constructor for initialization.

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

◆ ViewSelMax() [2/2]

template<class Merit >
Gecode::ViewSelMax< Merit >::ViewSelMax ( Space & home,
ViewSelMax< Merit > & vs )
inline

Constructor for copying during cloning.

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

Member Function Documentation

◆ copy()

template<class Merit >
ViewSel< typename ViewSelMax< Merit >::View > * Gecode::ViewSelMax< Merit >::copy ( Space & home)
virtual

Create copy during cloning.

Implements Gecode::ViewSel< Merit::View >.

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


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