Generated on Wed Jan 4 17:49:16 2006 for Gecode by doxygen 1.4.6

Sudoku Class Reference
[Example scripts (models)]

Inherits Example.

List of all members.


Detailed Description

Example: Some Sudoku puzzles

Does not really require any explanation...

Definition at line 58 of file sudoku.cc.

Public Member Functions

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

Protected Attributes

IntVarArray x

Static Protected Attributes

static const int n = 3


Constructor & Destructor Documentation

Sudoku::Sudoku const Options opt  )  [inline]
 

Actual model.

Definition at line 64 of file sudoku.cc.

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

Constructor for cloning s.

Definition at line 130 of file sudoku.cc.


Member Function Documentation

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

Perform copying during cloning.

Implements Gecode::Space.

Definition at line 136 of file sudoku.cc.

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

Print solution.

Reimplemented from Example.

Definition at line 142 of file sudoku.cc.


Member Data Documentation

const int Sudoku::n = 3 [static, protected]
 

Definition at line 60 of file sudoku.cc.

IntVarArray Sudoku::x [protected]
 

Definition at line 61 of file sudoku.cc.


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