MCPcopy Create free account
hub / github.com/Gecode/gecode / next

Method next

test/int.cpp:47–56  ·  view source on GitHub ↗

* Complete assignments * */

Source from the content-addressed store, hash-verified

45 *
46 */
47 void
48 CpltAssignment::next(Gecode::Support::RandomGenerator&) {
49 int i = n-1;
50 while (true) {
51 ++dsv[i];
52 if (dsv[i]() || (i == 0))
53 return;
54 dsv[i--].init(d);
55 }
56 }
57
58 /*
59 * Random assignments

Callers 15

ExtAssignmentMethod · 0.45
runMethod · 0.45
runMethod · 0.45
checkFunction · 0.45
sortMethod · 0.45
run_testsFunction · 0.45
runMethod · 0.45
run_tests_parallelFunction · 0.45
mainFunction · 0.45
solutionsFunction · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 2

randvalMethod · 0.95
initMethod · 0.45

Tested by 5

sortMethod · 0.36
run_testsFunction · 0.36
runMethod · 0.36
run_tests_parallelFunction · 0.36
mainFunction · 0.36