Value selection class for nearest value. More...
#include <branch.hh>
Public Member Functions | |
ValSelNearIncDec (Space &home, const ValBranch &vb) | |
Constructor for initialization. | |
ValSelNearIncDec (Space &home, bool shared, ValSelNearIncDec &vs) | |
Constructor for cloning. | |
int | val (const Space &home, View x, int i) |
Return value of view x at position i. | |
bool | notice (void) const |
Whether dispose must always be called (that is, notice is needed) | |
void | dispose (Space &home) |
Delete value selection. | |
Protected Attributes | |
IntSharedArray | c |
The used values. |
Value selection class for nearest value.
Requires
#include <gecode/int/branch.hh>
Gecode::Int::Branch::ValSelNearIncDec< View, inc >::ValSelNearIncDec | ( | Space & | home, |
const ValBranch & | vb | ||
) | [inline] |
Constructor for initialization.
Definition at line 216 of file val-sel.hpp.
Gecode::Int::Branch::ValSelNearIncDec< View, inc >::ValSelNearIncDec | ( | Space & | home, |
bool | shared, | ||
ValSelNearIncDec< View, inc > & | vs | ||
) | [inline] |
Constructor for cloning.
Definition at line 222 of file val-sel.hpp.
int Gecode::Int::Branch::ValSelNearIncDec< View, inc >::val | ( | const Space & | home, |
View | x, | ||
int | i | ||
) | [inline] |
Return value of view x at position i.
Definition at line 229 of file val-sel.hpp.
bool Gecode::Int::Branch::ValSelNearIncDec< View, inc >::notice | ( | void | ) | const [inline] |
Whether dispose must always be called (that is, notice is needed)
Reimplemented from Gecode::ValSel< View, int >.
Definition at line 252 of file val-sel.hpp.
void Gecode::Int::Branch::ValSelNearIncDec< View, inc >::dispose | ( | Space & | home | ) | [inline] |
Delete value selection.
Reimplemented from Gecode::ValSel< View, int >.
Definition at line 257 of file val-sel.hpp.
IntSharedArray Gecode::Int::Branch::ValSelNearIncDec< View, inc >::c [protected] |