Gecode::Set::Branch::ValRnd< inc > Class Template Reference
[Integer value selection for branching]
Class for random value selection.
More...
#include <branch.hh>
Public Types | |
| typedef SetView | View |
| View type. | |
| typedef int | Val |
| Value type. | |
| typedef Support::RandomGenerator | Desc |
| Description type. | |
Public Member Functions | |
| ValRnd (void) | |
| Default constructor. | |
| ValRnd (Space &home, const ValBranchOptions &vbo) | |
| Constructor for initialization. | |
| int | val (Space &home, SetView x) |
| Return minimum value of view x. | |
| ModEvent | tell (Space &home, unsigned int a, SetView x, int n) |
Tell (a = 0) or (a = 1). | |
| Support::RandomGenerator | description (Space &home) |
| Return description. | |
| void | commit (Space &home, const Support::RandomGenerator &d, unsigned a) |
| Commit to description. | |
| void | update (Space &home, bool share, ValRnd &vs) |
| Updating during cloning. | |
| void | dispose (Space &home) |
| Delete value selection. | |
Static Public Attributes | |
| static const unsigned int | alternatives = 2 |
| Number of alternatives. | |
Protected Attributes | |
| Support::RandomGenerator | r |
| Random number generator. | |
Detailed Description
template<bool inc>
class Gecode::Set::Branch::ValRnd< inc >
Class for random value selection.
Requires
#include <gecode/int/branch.hh>
Definition at line 130 of file branch.hh.
Member Typedef Documentation
template<bool inc>
| typedef SetView Gecode::Set::Branch::ValRnd< inc >::View |
template<bool inc>
| typedef int Gecode::Set::Branch::ValRnd< inc >::Val |
template<bool inc>
| typedef Support::RandomGenerator Gecode::Set::Branch::ValRnd< inc >::Desc |
Constructor & Destructor Documentation
template<bool inc>
| Gecode::Set::Branch::ValRnd< inc >::ValRnd | ( | void | ) | [inline] |
template<bool inc>
| Gecode::Set::Branch::ValRnd< inc >::ValRnd | ( | Space & | home, | |
| const ValBranchOptions & | vbo | |||
| ) | [inline] |
Member Function Documentation
template<bool inc>
| int Gecode::Set::Branch::ValRnd< inc >::val | ( | Space & | home, | |
| SetView | x | |||
| ) | [inline] |
template<bool inc>
| ModEvent Gecode::Set::Branch::ValRnd< inc >::tell | ( | Space & | home, | |
| unsigned int | a, | |||
| SetView | x, | |||
| int | n | |||
| ) | [inline] |
template<bool inc>
| Support::RandomGenerator Gecode::Set::Branch::ValRnd< inc >::description | ( | Space & | home | ) | [inline] |
template<bool inc>
| void Gecode::Set::Branch::ValRnd< inc >::commit | ( | Space & | home, | |
| const Support::RandomGenerator & | d, | |||
| unsigned | a | |||
| ) | [inline] |
template<bool inc>
| void Gecode::Set::Branch::ValRnd< inc >::update | ( | Space & | home, | |
| bool | share, | |||
| ValRnd< inc > & | vs | |||
| ) | [inline] |
template<bool inc>
| void Gecode::Set::Branch::ValRnd< inc >::dispose | ( | Space & | home | ) | [inline] |
Member Data Documentation
template<bool inc>
Support::RandomGenerator Gecode::Set::Branch::ValRnd< inc >::r [protected] |
template<bool inc>
const unsigned int Gecode::Set::Branch::ValRnd< inc >::alternatives = 2 [static] |
The documentation for this class was generated from the following files:
- gecode/set/branch.hh (Revision: 8166)
- gecode/set/branch/select-val.hpp (Revision: 8166)

(a = 0) or
(a = 1).