Example: Solving Sudoku puzzles using set constraints More...
Public Member Functions | |
SudokuSet (const SizeOptions &opt) | |
Constructor. | |
SudokuSet (bool share, SudokuSet &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Perform copying during cloning. | |
virtual void | print (std::ostream &os) const |
Print solution. | |
Protected Attributes | |
SetVarArray | y |
The fields occupied by a certain number. |
Example: Solving Sudoku puzzles using set constraints
SudokuSet::SudokuSet | ( | const SizeOptions & | opt | ) | [inline] |
Constructor.
Definition at line 253 of file sudoku.cpp.
SudokuSet::SudokuSet | ( | bool | share, |
SudokuSet & | s | ||
) | [inline] |
Constructor for cloning s.
Definition at line 325 of file sudoku.cpp.
virtual Space* SudokuSet::copy | ( | bool | share | ) | [inline, virtual] |
Perform copying during cloning.
Reimplemented in SudokuMixed.
Definition at line 331 of file sudoku.cpp.
virtual void SudokuSet::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase.
Reimplemented in SudokuMixed.
Definition at line 337 of file sudoku.cpp.
SetVarArray SudokuSet::y [protected] |
The fields occupied by a certain number.
Definition at line 250 of file sudoku.cpp.