Generated on Sat Jul 28 2018 17:27:00 for Gecode by doxygen 1.8.14
Gecode::Int::Branch::MeritActionSize< View > Class Template Reference

Merit class for action over size. More...

#include <branch.hh>

Public Member Functions

 MeritActionSize (Space &home, const VarBranch< Var > &vb)
 Constructor for initialization. More...
 
 MeritActionSize (Space &home, bool shared, MeritActionSize &m)
 Constructor for cloning. More...
 
double operator() (const Space &home, View x, int i)
 Return action over size 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, bool share, 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

Action action
 Action 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::Int::Branch::MeritActionSize< View >

Merit class for action over size.

Requires

Definition at line 166 of file branch.hh.

Constructor & Destructor Documentation

◆ MeritActionSize() [1/2]

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

Constructor for initialization.

Definition at line 131 of file merit.hpp.

◆ MeritActionSize() [2/2]

template<class View >
Gecode::Int::Branch::MeritActionSize< View >::MeritActionSize ( Space home,
bool  shared,
MeritActionSize< View > &  m 
)
inline

Constructor for cloning.

Definition at line 136 of file merit.hpp.

Member Function Documentation

◆ operator()()

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

Return action over size as merit for view x at position i.

Definition at line 143 of file merit.hpp.

◆ notice()

template<class View >
bool Gecode::Int::Branch::MeritActionSize< View >::notice ( void  ) const
inline

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

Definition at line 148 of file merit.hpp.

◆ dispose()

template<class View >
void Gecode::Int::Branch::MeritActionSize< View >::dispose ( Space home)
inline

Dispose view selection.

Definition at line 153 of file merit.hpp.

Member Data Documentation

◆ action

template<class View >
Action Gecode::Int::Branch::MeritActionSize< View >::action
protected

Action information.

Definition at line 170 of file branch.hh.


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