Generated on Tue May 22 09:40:50 2018 for Gecode by doxygen 1.6.3

SudokuInt Class Reference
[Example scripts (models)]

Example: Solving Sudoku puzzles using integer constraints More...

List of all members.

Public Types


Propagation variants.


Public Member Functions

 SudokuInt (const SizeOptions &opt)
 SudokuInt (SudokuInt &s)
 Constructor for cloning s.
virtual Spacecopy (void)
 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 constraints

Definition at line 97 of file sudoku.cpp.

Member Enumeration Documentation

anonymous enum

Propagation variants.


No additional constraints.


Use "same" constraint with integer model.

Definition at line 104 of file sudoku.cpp.

Constructor & Destructor Documentation

SudokuInt::SudokuInt ( const SizeOptions opt  )  [inline]


Definition at line 110 of file sudoku.cpp.

SudokuInt::SudokuInt ( SudokuInt s  )  [inline]

Constructor for cloning s.

Definition at line 187 of file sudoku.cpp.

Member Function Documentation

virtual Space* SudokuInt::copy ( void   )  [inline, virtual]

Perform copying during cloning.

Reimplemented in SudokuMixed.

Definition at line 193 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 199 of file sudoku.cpp.

Member Data Documentation

Values for the fields.

Definition at line 100 of file sudoku.cpp.

The documentation for this class was generated from the following file: