Gecode::MeritBase< _View, _Val > Class Template Reference
[Generic merit for branchers based on view and value selection]
Base-class for merit class. More...
#include <merit.hpp>
Public Types | |
typedef _View | View |
View type. | |
typedef View::VarType | Var |
Corresponding variable type. | |
typedef _Val | Val |
Type of merit. | |
Public Member Functions | |
MeritBase (Space &home, const VarBranch< Var > &vb) | |
Constructor for initialization. | |
MeritBase (Space &home, MeritBase &mb) | |
Constructor for cloning. | |
bool | notice (void) const |
Whether dispose must always be called (that is, notice is needed). | |
void | dispose (Space &home) |
Delete view merit class. |
Detailed Description
template<class _View, class _Val>
class Gecode::MeritBase< _View, _Val >
Base-class for merit class.
Definition at line 46 of file merit.hpp.
Member Typedef Documentation
typedef _View Gecode::MeritBase< _View, _Val >::View |
typedef View::VarType Gecode::MeritBase< _View, _Val >::Var |
typedef _Val Gecode::MeritBase< _View, _Val >::Val |
Constructor & Destructor Documentation
Member Function Documentation
bool Gecode::MeritBase< View, Val >::notice | ( | void | ) | const [inline] |
Whether dispose must always be called (that is, notice is needed).
Reimplemented in Gecode::Float::Branch::MeritAFCSize, Gecode::Float::Branch::MeritActionSize, Gecode::Float::Branch::MeritCHBSize, Gecode::Int::Branch::MeritAFCSize< View >, Gecode::Int::Branch::MeritActionSize< View >, Gecode::Int::Branch::MeritCHBSize< View >, Gecode::MeritFunction< View >, Gecode::MeritAFC< View >, Gecode::MeritAction< View >, Gecode::MeritCHB< View >, Gecode::Set::Branch::MeritAFCSize, Gecode::Set::Branch::MeritActionSize, and Gecode::Set::Branch::MeritCHBSize.
void Gecode::MeritBase< View, Val >::dispose | ( | Space & | home | ) | [inline] |
Delete view merit class.
Reimplemented in Gecode::Float::Branch::MeritAFCSize, Gecode::Float::Branch::MeritActionSize, Gecode::Float::Branch::MeritCHBSize, Gecode::Int::Branch::MeritAFCSize< View >, Gecode::Int::Branch::MeritActionSize< View >, Gecode::Int::Branch::MeritCHBSize< View >, Gecode::MeritFunction< View >, Gecode::MeritAFC< View >, Gecode::MeritAction< View >, Gecode::MeritCHB< View >, Gecode::Set::Branch::MeritAFCSize, Gecode::Set::Branch::MeritActionSize, and Gecode::Set::Branch::MeritCHBSize.
The documentation for this class was generated from the following file:
- gecode/kernel/branch/merit.hpp