Gecode::MeritActivity< View > Class Template Reference
[Generic merit for branchers based on view and value selection]
Merit class for activity. More...
#include <brancher-merit.hpp>
Public Member Functions | |
| MeritActivity (Space &home, const VarBranch &vb) | |
| Constructor for initialization. | |
| MeritActivity (Space &home, bool shared, MeritActivity &ma) | |
| Constructor for cloning. | |
| double | operator() (const Space &home, View x, int i) |
| Return activity 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 | |
| Activity | activity |
| Activity information. | |
Detailed Description
template<class View>
class Gecode::MeritActivity< View >
Merit class for activity.
Definition at line 127 of file brancher-merit.hpp.
Constructor & Destructor Documentation
| Gecode::MeritActivity< View >::MeritActivity | ( | Space & | home, | |
| const VarBranch & | vb | |||
| ) | [inline] |
Constructor for initialization.
Definition at line 228 of file brancher-merit.hpp.
| Gecode::MeritActivity< View >::MeritActivity | ( | Space & | home, | |
| bool | shared, | |||
| MeritActivity< View > & | ma | |||
| ) | [inline] |
Constructor for cloning.
Definition at line 232 of file brancher-merit.hpp.
Member Function Documentation
| double Gecode::MeritActivity< View >::operator() | ( | const Space & | home, | |
| View | x, | |||
| int | i | |||
| ) | [inline] |
Return activity as merit for view x at position i.
Definition at line 239 of file brancher-merit.hpp.
| bool Gecode::MeritActivity< 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 244 of file brancher-merit.hpp.
| void Gecode::MeritActivity< View >::dispose | ( | Space & | home | ) | [inline] |
Dispose view selection.
Reimplemented from Gecode::MeritBase< View, double >.
Definition at line 249 of file brancher-merit.hpp.
Member Data Documentation
Activity Gecode::MeritActivity< View >::activity [protected] |
Activity information.
Definition at line 130 of file brancher-merit.hpp.
The documentation for this class was generated from the following file:
- gecode/kernel/brancher-merit.hpp (Revision: 13310)
