Gecode::Int::Branch::ValSelRnd< View > Class Template Reference
Value selection class for random value of view. More...
#include <gecode/int/branch.hh>
Public Member Functions | |
| ValSelRnd (Space &home, const ValBranch< Var > &vb) | |
| Constructor for initialization. | |
| ValSelRnd (Space &home, 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. | |
| Public Member Functions inherited from Gecode::ValSel< View, int > | |
| ValSel (Space &home, const ValBranch< Var > &vb) | |
| Constructor for initialization. | |
| 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. | |
Additional Inherited Members | |
| Public Types inherited from Gecode::ValSel< View, int > | |
| typedef View | View |
| View type. | |
| typedef View::VarType | Var |
| Corresponding variable type. | |
| typedef int | Val |
| Value type. | |
Detailed Description
template<class View>
class Gecode::Int::Branch::ValSelRnd< View >
class Gecode::Int::Branch::ValSelRnd< View >
Value selection class for random value of view.
Requires
#include <gecode/int/branch.hh>
Constructor & Destructor Documentation
◆ ValSelRnd() [1/2]
template<class View>
| Gecode::Int::Branch::ValSelRnd< View >::ValSelRnd | ( | Space & | home, |
| const ValBranch< Var > & | vb ) |
Constructor for initialization.
◆ ValSelRnd() [2/2]
template<class View>
|
inline |
Constructor for cloning.
Definition at line 103 of file val-sel.hpp.
Member Function Documentation
◆ val()
template<class View>
|
inline |
Return value of view x at position i.
Definition at line 108 of file val-sel.hpp.
◆ notice()
template<class View>
|
inline |
Whether dispose must always be called (that is, notice is needed).
Definition at line 120 of file val-sel.hpp.
◆ dispose()
template<class View>
|
inline |
Delete value selection.
Definition at line 125 of file val-sel.hpp.
Member Data Documentation
◆ r
template<class View>
|
protected |
The documentation for this class was generated from the following files:
- gecode/int/branch.hh
- gecode/int/branch/val-sel.hpp
