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

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 61 of file sudoku.cc.

Sudoku specifications

Each specification gives the initial positions that are filled in, with blank squares represented as zeroes.

int example_size (const char *s)
int value_at (const char *s, int n, int i, int j)

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

const int n
IntVarArray x


Constructor & Destructor Documentation

Sudoku::Sudoku const Options opt  )  [inline]
 

Actual model.

Definition at line 68 of file sudoku.cc.

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

Constructor for cloning s.

Definition at line 136 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 142 of file sudoku.cc.

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

Print solution.

Reimplemented from Example.

Definition at line 148 of file sudoku.cc.


Friends And Related Function Documentation

int example_size const char *  s  )  [related]
 

Definition at line 677 of file sudoku.icc.

int value_at const char *  s,
int  n,
int  i,
int  j
[related]
 

Definition at line 685 of file sudoku.icc.


Member Data Documentation

const int Sudoku::n [protected]
 

Definition at line 63 of file sudoku.cc.

IntVarArray Sudoku::x [protected]
 

Definition at line 64 of file sudoku.cc.


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