Generated on Tue Apr 18 10:23:03 2017 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 (bool share, SudokuInt &s)
 Constructor for cloning s.
virtual Spacecopy (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 constraints

Definition at line 101 of file sudoku.cpp.

Member Enumeration Documentation

anonymous enum

Propagation variants.


No additional constraints.


Use "same" constraint with integer model.

Definition at line 108 of file sudoku.cpp.

Constructor & Destructor Documentation

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


Definition at line 114 of file sudoku.cpp.

SudokuInt::SudokuInt ( bool  share,
SudokuInt s 
) [inline]

Constructor for cloning s.

Definition at line 191 of file sudoku.cpp.

Member Function Documentation

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

Perform copying during cloning.

Reimplemented in SudokuMixed.

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

Member Data Documentation

Values for the fields.

Definition at line 104 of file sudoku.cpp.

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