Value selection class for average of view. More...
#include <branch.hh>
Public Member Functions | |
ValSelAvg (Space &home, const ValBranch &vb) | |
Constructor for initialization. | |
ValSelAvg (Space &home, bool shared, ValSelAvg &vs) | |
Constructor for cloning. | |
int | val (const Space &home, View x, int i) |
Return value of view x at position i. |
Value selection class for average of view.
Requires
#include <gecode/int/branch.hh>
Gecode::Int::Branch::ValSelAvg< View >::ValSelAvg | ( | Space & | home, |
const ValBranch & | vb | ||
) | [inline] |
Constructor for initialization.
Definition at line 84 of file val-sel.hpp.
Gecode::Int::Branch::ValSelAvg< View >::ValSelAvg | ( | Space & | home, |
bool | shared, | ||
ValSelAvg< View > & | vs | ||
) | [inline] |
Constructor for cloning.
Definition at line 88 of file val-sel.hpp.
int Gecode::Int::Branch::ValSelAvg< View >::val | ( | const Space & | home, |
View | x, | ||
int | i | ||
) | [inline] |
Return value of view x at position i.
Definition at line 92 of file val-sel.hpp.