Merit class for action. More...
#include <merit.hpp>
Public Member Functions | |
MeritAction (Space &home, const VarBranch< Var > &vb) | |
Constructor for initialization. | |
MeritAction (Space &home, MeritAction &ma) | |
Constructor for cloning. | |
double | operator() (const Space &home, View x, int i) |
Return action as merit for view x at position i. | |
bool | notice (void) const |
Whether dispose must always be called (that is, notice is needed) | |
void | dispose (Space &home) |
Dispose view selection. | |
Public Member Functions inherited from Gecode::MeritBase< View, double > | |
MeritBase (Space &home, const VarBranch< Var > &vb) | |
Constructor for initialization. | |
bool | notice (void) const |
Whether dispose must always be called (that is, notice is needed) | |
void | dispose (Space &home) |
Delete view merit class. |
Protected Attributes | |
Action | action |
Action information. |
Additional Inherited Members | |
Public Types inherited from Gecode::MeritBase< View, double > | |
typedef View | View |
View type. | |
typedef View::VarType | Var |
Corresponding variable type. | |
typedef double | Val |
Type of merit. |
Gecode::MeritAction< View >::MeritAction | ( | Space & | home, |
const VarBranch< Var > & | vb ) |
Constructor for initialization.
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |