Generated on Thu Mar 22 10:39:52 2012 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 99 of file sudoku.cpp.

Member Enumeration Documentation

anonymous enum

Propagation variants.


No additional constraints.


Use "same" constraint with integer model.

Definition at line 106 of file sudoku.cpp.

Constructor & Destructor Documentation

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


Definition at line 112 of file sudoku.cpp.

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

Constructor for cloning s.

Definition at line 189 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 195 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 201 of file sudoku.cpp.

Member Data Documentation

Values for the fields.

Definition at line 102 of file sudoku.cpp.

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