Generated on Fri Jan 28 2022 04:43:06 for Gecode by doxygen 1.8.13

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. More...
 
 ViewSelNone (Space &home, ViewSelNone< View > &vs)
 Constructor for copying during cloning. More...
 

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. More...
 
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. More...
 
virtual void ties (Space &home, ViewArray< View > &x, int s, int *ties, int &n)
 Select ties from x starting at s. More...
 
virtual void ties (Space &home, ViewArray< View > &x, int s, int *ties, int &n, BrancherFilter< View > &f)
 Select ties from x starting at s. More...
 
virtual void brk (Space &home, ViewArray< View > &x, int *ties, int &n)
 Break ties in x and update to new ties. More...
 
virtual int select (Space &home, ViewArray< View > &x, int *ties, int n)
 Select a view from x considering view with positions in ties. More...
 

Resource management and cloning

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

Additional Inherited Members

- Public Types inherited from Gecode::ViewSel< View >
typedef View View
 Define the view type. More...
 
typedef View::VarType Var
 The corresponding variable type. More...
 
- Public Member Functions inherited from Gecode::ViewSel< View >
 ViewSel (Space &home, const VarBranch< Var > &vb)
 Constructor for creation. More...
 
 ViewSel (Space &home, ViewSel< View > &vs)
 Constructor for copying during cloning. More...
 
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. More...
 
virtual void ties (Space &home, ViewArray< View > &x, int s, int *ties, int &n, BrancherNoFilter< View > &f)
 Select ties from x starting from s. More...
 
virtual bool notice (void) const
 Whether dispose must always be called (that is, notice is needed) More...
 
virtual void dispose (Space &home)
 Dispose view selection. More...
 
virtual ~ViewSel (void)
 Unused destructor. More...
 
- Static Public Member Functions inherited from Gecode::ViewSel< View >
static void * operator new (size_t s, Space &home)
 Allocate memory from space. More...
 
static void operator delete (void *p, Space &home)
 Return memory to space. More...
 
static void operator delete (void *p)
 Needed for exceptions. More...
 

Detailed Description

template<class View>
class Gecode::ViewSelNone< View >

Select the first unassigned view.

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

Member Typedef Documentation

◆ Var

template<class View>
typedef ViewSel<View>::Var Gecode::ViewSelNone< View >::Var
protected

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

Constructor & Destructor Documentation

◆ ViewSelNone() [1/2]

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

Constructor for creation.

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

◆ ViewSelNone() [2/2]

template<class View >
Gecode::ViewSelNone< View >::ViewSelNone ( Space home,
ViewSelNone< View > &  vs 
)
inline

Constructor for copying during cloning.

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

Member Function Documentation

◆ select() [1/3]

template<class View >
int Gecode::ViewSelNone< View >::select ( Space home,
ViewArray< View > &  x,
int  s 
)
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.

◆ select() [2/3]

template<class View >
int Gecode::ViewSelNone< View >::select ( Space home,
ViewArray< View > &  x,
int  s,
BrancherFilter< View > &  f 
)
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.

◆ ties() [1/2]

template<class View >
void Gecode::ViewSelNone< View >::ties ( Space home,
ViewArray< View > &  x,
int  s,
int *  ties,
int &  n 
)
virtual

Select ties from x starting at s.

Implements Gecode::ViewSel< View >.

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

◆ ties() [2/2]

template<class View >
void Gecode::ViewSelNone< View >::ties ( Space home,
ViewArray< View > &  x,
int  s,
int *  ties,
int &  n,
BrancherFilter< View > &  f 
)
virtual

Select ties from x starting at s.

Implements Gecode::ViewSel< View >.

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

◆ brk()

template<class View >
void Gecode::ViewSelNone< View >::brk ( Space home,
ViewArray< View > &  x,
int *  ties,
int &  n 
)
virtual

Break ties in x and update to new ties.

Implements Gecode::ViewSel< View >.

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

◆ select() [3/3]

template<class View >
int Gecode::ViewSelNone< View >::select ( Space home,
ViewArray< View > &  x,
int *  ties,
int  n 
)
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.

◆ copy()

template<class View >
ViewSel< View > * Gecode::ViewSelNone< View >::copy ( Space home)
virtual

Create copy during cloning.

Implements Gecode::ViewSel< View >.

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


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