Gecode::MeritAction< View > Class Template Reference
[Generic merit for branchers based on view and value selection]
Merit class for action. More...
#include <brancher-merit.hpp>
Public Member Functions | |
MeritAction (Space &home, const VarBranch< Var > &vb) | |
Constructor for initialization. | |
MeritAction (Space &home, bool shared, 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. | |
Protected Attributes | |
Action | action |
Action information. |
Detailed Description
template<class View>
class Gecode::MeritAction< View >
Merit class for action.
Definition at line 134 of file brancher-merit.hpp.
Constructor & Destructor Documentation
Gecode::MeritAction< View >::MeritAction | ( | Space & | home, | |
const VarBranch< Var > & | vb | |||
) | [inline] |
Constructor for initialization.
Definition at line 275 of file brancher-merit.hpp.
Gecode::MeritAction< View >::MeritAction | ( | Space & | home, | |
bool | shared, | |||
MeritAction< View > & | ma | |||
) | [inline] |
Constructor for cloning.
Definition at line 279 of file brancher-merit.hpp.
Member Function Documentation
double Gecode::MeritAction< View >::operator() | ( | const Space & | home, | |
View | x, | |||
int | i | |||
) | [inline] |
Return action as merit for view x at position i.
Definition at line 286 of file brancher-merit.hpp.
bool Gecode::MeritAction< View >::notice | ( | void | ) | const [inline] |
Whether dispose must always be called (that is, notice is needed).
Reimplemented from Gecode::MeritBase< View, double >.
Definition at line 291 of file brancher-merit.hpp.
void Gecode::MeritAction< View >::dispose | ( | Space & | home | ) | [inline] |
Dispose view selection.
Reimplemented from Gecode::MeritBase< View, double >.
Definition at line 296 of file brancher-merit.hpp.
Member Data Documentation
Action Gecode::MeritAction< View >::action [protected] |
Action information.
Definition at line 138 of file brancher-merit.hpp.
The documentation for this class was generated from the following file:
- gecode/kernel/brancher-merit.hpp (Revision: 15541)