Gecode::Set::Branch::ValSelRnd Class Reference
Value selection class for random value of view. More...
#include <gecode/set/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, 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. | |
| Public Member Functions inherited from Gecode::ValSel< SetView, 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< SetView, int > | |
| typedef SetView | View |
| View type. | |
| typedef View::VarType | Var |
| Corresponding variable type. | |
| typedef int | Val |
| Value type. | |
Detailed Description
Constructor & Destructor Documentation
◆ ValSelRnd() [1/2]
Constructor for initialization.
Definition at line 93 of file val-sel.hpp.
◆ ValSelRnd() [2/2]
|
inline |
Constructor for cloning.
Definition at line 96 of file val-sel.hpp.
Member Function Documentation
◆ val()
Return value of view x at position i.
Definition at line 100 of file val-sel.hpp.
◆ notice()
|
inline |
Whether dispose must always be called (that is, notice is needed).
Definition at line 112 of file val-sel.hpp.
◆ dispose()
|
inline |
Delete value selection.
Definition at line 116 of file val-sel.hpp.
Member Data Documentation
◆ r
|
protected |
The documentation for this class was generated from the following files:
- gecode/set/branch.hh
- gecode/set/branch/val-sel.hpp
