Example: Solving Sudoku puzzles using both set and integer constraints More...
Public Member Functions | |
SudokuMixed (const SizeOptions &opt) | |
Constructor. | |
SudokuMixed (bool share, SudokuMixed &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Perform copying during cloning. | |
virtual void | print (std::ostream &os) const |
Print solution. | |
![]() | |
SudokuInt (const SizeOptions &opt) | |
Constructor. | |
SudokuInt (bool share, SudokuInt &s) | |
Constructor for cloning s. | |
![]() | |
Sudoku (const SizeOptions &opt) | |
Constructor. | |
Sudoku (bool share, Sudoku &s) | |
Constructor for cloning s. | |
![]() | |
ScriptBase (void) | |
Default constructor. | |
ScriptBase (bool share, ScriptBase &e) | |
Constructor used for cloning. | |
virtual void | compare (const Space &, std::ostream &os) const |
Compare with s. | |
![]() | |
SudokuSet (const SizeOptions &opt) | |
Constructor. | |
SudokuSet (bool share, SudokuSet &s) | |
Constructor for cloning s. |
Additional Inherited Members | |
![]() | |
enum | { PROP_NONE, PROP_SAME } |
Propagation variants. More... | |
![]() | |
enum | { MODEL_INT, MODEL_SET, MODEL_MIXED } |
Model variants. More... | |
enum | { BRANCH_NONE, BRANCH_SIZE, BRANCH_SIZE_DEGREE, BRANCH_SIZE_AFC, BRANCH_AFC } |
![]() | |
IntVarArray | x |
Values for the fields. | |
![]() | |
SetVarArray | y |
The fields occupied by a certain number. |
Example: Solving Sudoku puzzles using both set and integer constraints
Definition at line 363 of file sudoku.cpp.
|
inline |
Constructor.
Definition at line 366 of file sudoku.cpp.
|
inline |
Constructor for cloning s.
Definition at line 391 of file sudoku.cpp.
|
inlinevirtual |
Perform copying during cloning.
Reimplemented from SudokuInt.
Definition at line 396 of file sudoku.cpp.
|
inlinevirtual |