Generated on Wed Nov 1 15:04:52 2006 for Gecode by doxygen 1.4.5

SudokuSet Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


Detailed Description

Example: Some Sudoku puzzles using set constraints

Does not really require any explanation...

Definition at line 36 of file sudoku-set.cc.

Public Member Functions

 SudokuSet (const Options &opt)
 Actual model.
 SudokuSet (bool share, SudokuSet &s)
 Constructor for cloning s.
virtual Spacecopy (bool share)
 Perform copying during cloning.
virtual void print (void)
 Print solution.

Protected Attributes

const int n
SetVarArray x


Constructor & Destructor Documentation

SudokuSet::SudokuSet const Options opt  )  [inline]
 

Actual model.

Definition at line 42 of file sudoku-set.cc.

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

Constructor for cloning s.

Definition at line 103 of file sudoku-set.cc.


Member Function Documentation

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

Perform copying during cloning.

Implements Gecode::Space.

Definition at line 109 of file sudoku-set.cc.

virtual void SudokuSet::print void   )  [inline, virtual]
 

Print solution.

Reimplemented from Example.

Definition at line 115 of file sudoku-set.cc.


Member Data Documentation

const int SudokuSet::n [protected]
 

Definition at line 38 of file sudoku-set.cc.

SetVarArray SudokuSet::x [protected]
 

Definition at line 39 of file sudoku-set.cc.


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