SudokuSet Class Reference
[Scripts for problems]
Inherits Sudoku.
Inherited by SudokuMixed.
Detailed Description
Example: Solving Sudoku puzzles using set constraintsDefinition at line 236 of file sudoku.cc.
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) |
Print solution. | |
Protected Attributes | |
SetVarArray | y |
The fields occupied by a certain number. |
Constructor & Destructor Documentation
SudokuSet::SudokuSet | ( | const SizeOptions & | opt | ) | [inline] |
SudokuSet::SudokuSet | ( | bool | share, | |
SudokuSet & | s | |||
) | [inline] |
Member Function Documentation
virtual Space* SudokuSet::copy | ( | bool | share | ) | [inline, virtual] |
virtual void SudokuSet::print | ( | std::ostream & | os | ) | [inline, virtual] |
Member Data Documentation
SetVarArray SudokuSet::y [protected] |
The documentation for this class was generated from the following file:
- examples/sudoku.cc (Revision: 6034)