Gecode::Float::Branch::ValSelRnd Class Reference
[Float value selection for brancher]
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. | |
FloatNumBranch | val (const Space &home, FloatView 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. |
Detailed Description
Value selection class for random value of view.
Requires
#include <gecode/float/branch.hh>
Definition at line 238 of file branch.hh.
Constructor & Destructor Documentation
Constructor for initialization.
Definition at line 83 of file val-sel.hpp.
Constructor for cloning.
Definition at line 86 of file val-sel.hpp.
Member Function Documentation
FloatNumBranch Gecode::Float::Branch::ValSelRnd::val | ( | const Space & | home, | |
FloatView | x, | |||
int | i | |||
) | [inline] |
Return value of view x at position i.
Definition at line 91 of file val-sel.hpp.
bool Gecode::Float::Branch::ValSelRnd::notice | ( | void | ) | const [inline] |
Whether dispose must always be called (that is, notice is needed).
Reimplemented from Gecode::ValSel< FloatView, FloatNumBranch >.
Definition at line 97 of file val-sel.hpp.
void Gecode::Float::Branch::ValSelRnd::dispose | ( | Space & | home | ) | [inline] |
Delete value selection.
Reimplemented from Gecode::ValSel< FloatView, FloatNumBranch >.
Definition at line 101 of file val-sel.hpp.
Member Data Documentation
Rnd Gecode::Float::Branch::ValSelRnd::r [protected] |
The documentation for this class was generated from the following files:
- gecode/float/branch.hh (Revision: 13801)
- gecode/float/branch/val-sel.hpp (Revision: 13672)