SudokuInt Class Reference
[Scripts for problems]
Inherits Sudoku.
Inherited by SudokuMixed.
Detailed Description
Example: Solving Sudoku puzzles using integer constraintsDefinition at line 95 of file sudoku.cc.
Public Types | |
enum | { PROP_NONE, PROP_SAME } |
Propagation variants. More... | |
Public Member Functions | |
SudokuInt (const SizeOptions &opt) | |
Constructor. | |
SudokuInt (bool share, SudokuInt &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Perform copying during cloning. | |
virtual void | print (std::ostream &os) |
Print solution. | |
Protected Attributes | |
IntVarArray | x |
Values for the fields. |
Member Enumeration Documentation
anonymous enum |
Constructor & Destructor Documentation
SudokuInt::SudokuInt | ( | const SizeOptions & | opt | ) | [inline] |
SudokuInt::SudokuInt | ( | bool | share, | |
SudokuInt & | s | |||
) | [inline] |
Member Function Documentation
virtual Space* SudokuInt::copy | ( | bool | share | ) | [inline, virtual] |
virtual void SudokuInt::print | ( | std::ostream & | os | ) | [inline, virtual] |
Member Data Documentation
IntVarArray SudokuInt::x [protected] |
The documentation for this class was generated from the following file:
- examples/sudoku.cc (Revision: 6034)