Value selection class for random value of view. More...
#include <branch.hh>
Public Member Functions | |
ValSelRnd (Space &home, const ValBranch &vb) | |
Constructor for initialization. | |
ValSelRnd (Space &home, bool shared, ValSelRnd &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 | |
Rnd | r |
The used random number generator. |
Value selection class for random value of view.
Requires
#include <gecode/int/branch.hh>
Gecode::Int::Branch::ValSelRnd< View >::ValSelRnd | ( | Space & | home, |
const ValBranch & | vb | ||
) | [inline] |
Constructor for initialization.
Definition at line 98 of file val-sel.hpp.
Gecode::Int::Branch::ValSelRnd< View >::ValSelRnd | ( | Space & | home, |
bool | shared, | ||
ValSelRnd< View > & | vs | ||
) | [inline] |
Constructor for cloning.
Definition at line 102 of file val-sel.hpp.
int Gecode::Int::Branch::ValSelRnd< View >::val | ( | const Space & | home, |
View | x, | ||
int | i | ||
) | [inline] |
Return value of view x at position i.
Definition at line 108 of file val-sel.hpp.
bool Gecode::Int::Branch::ValSelRnd< View >::notice | ( | void | ) | const [inline] |
Whether dispose must always be called (that is, notice is needed)
Reimplemented from Gecode::ValSel< View, int >.
Definition at line 120 of file val-sel.hpp.
void Gecode::Int::Branch::ValSelRnd< View >::dispose | ( | Space & | home | ) | [inline] |
Delete value selection.
Reimplemented from Gecode::ValSel< View, int >.
Definition at line 125 of file val-sel.hpp.
Rnd Gecode::Int::Branch::ValSelRnd< View >::r [protected] |