Generated on Mon Jul 27 2020 00:00:00 for Gecode by doxygen 1.8.18
Gecode::MeritDegree< View > Class Template Reference

Merit class for degree. More...

#include <merit.hpp>

Public Member Functions

 MeritDegree (Space &home, const VarBranch< Var > &vb)
 Constructor for initialization. More...
 
 MeritDegree (Space &home, MeritDegree &md)
 Constructor for cloning. More...
 
unsigned int operator() (const Space &home, View x, int i)
 Return degree as merit for view x at position i. More...
 
- Public Member Functions inherited from Gecode::MeritBase< View, unsigned int >
 MeritBase (Space &home, const VarBranch< Var > &vb)
 Constructor for initialization. More...
 
 MeritBase (Space &home, MeritBase &mb)
 Constructor for cloning. More...
 
bool notice (void) const
 Whether dispose must always be called (that is, notice is needed) More...
 
void dispose (Space &home)
 Delete view merit class. More...
 

Additional Inherited Members

- Public Types inherited from Gecode::MeritBase< View, unsigned int >
typedef View View
 View type. More...
 
typedef View::VarType Var
 Corresponding variable type. More...
 
typedef unsigned int Val
 Type of merit. More...
 

Detailed Description

template<class View>
class Gecode::MeritDegree< View >

Merit class for degree.

Definition at line 93 of file merit.hpp.

Constructor & Destructor Documentation

◆ MeritDegree() [1/2]

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

Constructor for initialization.

◆ MeritDegree() [2/2]

template<class View >
Gecode::MeritDegree< View >::MeritDegree ( Space home,
MeritDegree< View > &  md 
)
inline

Constructor for cloning.

Definition at line 230 of file merit.hpp.

Member Function Documentation

◆ operator()()

template<class View >
unsigned int Gecode::MeritDegree< View >::operator() ( const Space home,
View  x,
int  i 
)
inline

Return degree as merit for view x at position i.

Definition at line 234 of file merit.hpp.


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