Generated on Mon Aug 25 11:35:48 2008 for Gecode by doxygen 1.5.6

SudokuSet Class Reference
[Scripts for problems]

Inherits Sudoku.

Inherited by SudokuMixed.

List of all members.


Detailed Description

Example: Solving Sudoku puzzles using set constraints

Definition at line 236 of file sudoku.cc.


Public Member Functions

 SudokuSet (const SizeOptions &opt)
 Constructor.
 SudokuSet (bool share, SudokuSet &s)
 Constructor for cloning s.
virtual Spacecopy (bool share)
 Perform copying during cloning.
virtual void print (std::ostream &os)
 Print solution.

Protected Attributes

SetVarArray y
 The fields occupied by a certain number.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 242 of file sudoku.cc.

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

Constructor for cloning s.

Definition at line 303 of file sudoku.cc.


Member Function Documentation

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

Perform copying during cloning.

Implements Gecode::Space.

Reimplemented in SudokuMixed.

Definition at line 309 of file sudoku.cc.

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

Print solution.

Reimplemented from Example.

Reimplemented in SudokuMixed.

Definition at line 315 of file sudoku.cc.


Member Data Documentation

The fields occupied by a certain number.

Definition at line 239 of file sudoku.cc.


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