SudokuInt Class Reference
[Scripts for problems]
Example: Solving Sudoku puzzles using integer constraints
More...
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) const |
| Print solution. | |
Protected Attributes | |
| IntVarArray | x |
| Values for the fields. | |
Detailed Description
Example: Solving Sudoku puzzles using integer constraintsDefinition at line 91 of file sudoku.cpp.
Member Enumeration Documentation
| anonymous enum |
Propagation variants.
- Enumerator:
-
PROP_NONE No additional constraints. PROP_SAME Use "same" constraint with integer model.
Definition at line 98 of file sudoku.cpp.
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] |
Perform copying during cloning.
Reimplemented in SudokuMixed.
Definition at line 178 of file sudoku.cpp.
| virtual void SudokuInt::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print solution.
Reimplemented from Gecode::Driver::ScriptBase< BaseSpace >.
Reimplemented in SudokuMixed.
Definition at line 184 of file sudoku.cpp.
Member Data Documentation
IntVarArray SudokuInt::x [protected] |
The documentation for this class was generated from the following file:
- examples/sudoku.cpp (Revision: 9095)
