Generated on Tue Jan 19 2021 06:15:49 for Gecode by doxygen 1.8.13
Gecode::MeritCHB< View > Class Template Reference

Merit class for CHB. More...

#include <merit.hpp>

Public Member Functions

 MeritCHB (Space &home, const VarBranch< Var > &vb)
 Constructor for initialization. More...
 
 MeritCHB (Space &home, MeritCHB &ma)
 Constructor for cloning. More...
 
double operator() (const Space &home, View x, int i)
 Return action as merit for view x at position i. More...
 
bool notice (void) const
 Whether dispose must always be called (that is, notice is needed) More...
 
void dispose (Space &home)
 Dispose view selection. More...
 
- Public Member Functions inherited from Gecode::MeritBase< View, double >
 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...
 

Protected Attributes

CHB chb
 CHB information. More...
 

Additional Inherited Members

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

Detailed Description

template<class View>
class Gecode::MeritCHB< View >

Merit class for CHB.

Definition at line 153 of file merit.hpp.

Constructor & Destructor Documentation

◆ MeritCHB() [1/2]

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

Constructor for initialization.

Definition at line 292 of file merit.hpp.

◆ MeritCHB() [2/2]

template<class View >
Gecode::MeritCHB< View >::MeritCHB ( Space home,
MeritCHB< View > &  ma 
)
inline

Constructor for cloning.

Definition at line 296 of file merit.hpp.

Member Function Documentation

◆ operator()()

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

Return action as merit for view x at position i.

Definition at line 300 of file merit.hpp.

◆ notice()

template<class View >
bool Gecode::MeritCHB< View >::notice ( void  ) const
inline

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

Definition at line 305 of file merit.hpp.

◆ dispose()

template<class View >
void Gecode::MeritCHB< View >::dispose ( Space home)
inline

Dispose view selection.

Definition at line 310 of file merit.hpp.

Member Data Documentation

◆ chb

template<class View >
CHB Gecode::MeritCHB< View >::chb
protected

CHB information.

Definition at line 157 of file merit.hpp.


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