Gecode::Int::Branch::ValMax< View > Class Template Reference
[Integer value selection for branching]
#include <branch.hh>
Detailed Description
template<class View>
class Gecode::Int::Branch::ValMax< View >
Class for selecting median value.
Requires
#include "gecode/int/branch.hh"
Definition at line 107 of file branch.hh.
Public Member Functions | |
int | val (const Space *home, View x) const |
Return median value of view x. | |
ModEvent | tell (Space *home, unsigned int a, View x, int n) |
Tell (a = 0) or (a = 1). | |
void | branchingSpec (const Space *home, Reflection::VarMap &m, Reflection::BranchingSpec &bs, int alt, View x, int n) const |
Specification of a branch (for reflection). | |
Static Public Member Functions | |
static Support::Symbol | type (void) |
Type of this value selection (for reflection). |
Member Function Documentation
template<class View>
int Gecode::Int::Branch::ValMax< View >::val | ( | const Space * | home, | |
View | x | |||
) | const [inline] |
template<class View>
ModEvent Gecode::Int::Branch::ValMax< View >::tell | ( | Space * | home, | |
unsigned int | a, | |||
View | x, | |||
int | n | |||
) | [inline] |
template<class View>
Support::Symbol Gecode::Int::Branch::ValMax< View >::type | ( | void | ) | [inline, static] |
template<class View>
void Gecode::Int::Branch::ValMax< View >::branchingSpec | ( | const Space * | home, | |
Reflection::VarMap & | m, | |||
Reflection::BranchingSpec & | bs, | |||
int | alt, | |||
View | x, | |||
int | n | |||
) | const [inline] |
The documentation for this class was generated from the following files:
- gecode/int/branch.hh (Revision: 7310)
- gecode/int/branch/select-val.icc (Revision: 7297)