Test::Int::RandomMixAssignment Class Reference
Generate random selection of assignments. More...
#include <test/int.hh>
Public Member Functions | |
| RandomMixAssignment (int n0, const Gecode::IntSet &d0, int n1, const Gecode::IntSet &d1, int a0, Gecode::Support::RandomGenerator &rand) | |
| Initialize for a assignments for n0 variables and values d0. | |
| virtual bool | has_more (void) const |
| Test whether all assignments have been iterated. | |
| virtual void | next (Gecode::Support::RandomGenerator &rand) |
| Move to next assignment. | |
| virtual int | operator[] (int i) const |
| Return value for variable i. | |
| virtual | ~RandomMixAssignment (void) |
| Destructor. | |
| Public Member Functions inherited from Test::Int::Assignment | |
| Assignment (int n0, const Gecode::IntSet &d0) | |
| Initialize assignments for n0 variables and values d0. | |
| int | size (void) const |
| Return number of variables. | |
| virtual | ~Assignment (void) |
| Destructor. | |
Protected Member Functions | |
| int | randval (const Gecode::IntSet &d, Gecode::Support::RandomGenerator &rand) |
Protected Attributes | |
| int * | vals |
| The current values for the variables. | |
| int | a |
| How many assignments still to be generated. | |
| int | _n1 |
| How many variables in the second set. | |
| Gecode::IntSet | _d1 |
| Domain for second set of variables Generate new value according to domain d. | |
| Protected Attributes inherited from Test::Int::Assignment | |
| int | n |
| Number of variables. | |
| Gecode::IntSet | d |
| Domain for each variable. | |
Detailed Description
Constructor & Destructor Documentation
◆ RandomMixAssignment()
|
inline |
◆ ~RandomMixAssignment()
|
inlinevirtual |
Member Function Documentation
◆ randval()
|
inlineprotected |
◆ has_more()
|
inlinevirtual |
Test whether all assignments have been iterated.
Implements Test::Int::Assignment.
◆ next()
|
virtual |
◆ operator[]()
|
inlinevirtual |
Return value for variable i.
Implements Test::Int::Assignment.
Member Data Documentation
◆ vals
|
protected |
◆ a
|
protected |
◆ _n1
|
protected |
◆ _d1
|
protected |
The documentation for this class was generated from the following files:
