Generated on Fri Oct 19 11:25:42 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

enum  { PROP_NONE, PROP_SAME }
 

Propagation variants.

More...

Public Member Functions

 SudokuInt (const SizeOptions &opt)
 Constructor.
 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 92 of file sudoku-advanced.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 99 of file sudoku-advanced.cpp.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 105 of file sudoku-advanced.cpp.

SudokuInt::SudokuInt ( SudokuInt s  )  [inline]

Constructor for cloning s.

Definition at line 182 of file sudoku-advanced.cpp.


Member Function Documentation

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

Perform copying during cloning.

Reimplemented from Sudoku.

Reimplemented in SudokuMixed.

Definition at line 188 of file sudoku-advanced.cpp.

virtual void SudokuInt::print ( std::ostream &  os  )  const [inline, virtual]

Print solution.

Reimplemented from Sudoku.

Reimplemented in SudokuMixed.

Definition at line 194 of file sudoku-advanced.cpp.


Member Data Documentation

Values for the fields.

Reimplemented from Sudoku.

Definition at line 95 of file sudoku-advanced.cpp.


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