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, SetView 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. |
Gecode::Set::Branch::ValSelRnd::ValSelRnd | ( | Space & | home, |
const ValBranch & | vb | ||
) | [inline] |
Constructor for initialization.
Definition at line 97 of file val-sel.hpp.
Gecode::Set::Branch::ValSelRnd::ValSelRnd | ( | Space & | home, |
bool | shared, | ||
ValSelRnd & | vs | ||
) | [inline] |
Constructor for cloning.
Definition at line 100 of file val-sel.hpp.
int Gecode::Set::Branch::ValSelRnd::val | ( | const Space & | home, |
SetView | x, | ||
int | i | ||
) | [inline] |
Return value of view x at position i.
Definition at line 105 of file val-sel.hpp.
bool Gecode::Set::Branch::ValSelRnd::notice | ( | void | ) | const [inline] |
Whether dispose must always be called (that is, notice is needed)
Reimplemented from Gecode::ValSel< SetView, int >.
Definition at line 117 of file val-sel.hpp.
void Gecode::Set::Branch::ValSelRnd::dispose | ( | Space & | home | ) | [inline] |
Delete value selection.
Reimplemented from Gecode::ValSel< SetView, int >.
Definition at line 121 of file val-sel.hpp.
Rnd Gecode::Set::Branch::ValSelRnd::r [protected] |