SudokuSet Class Reference
[Example scripts (models)]
Inherits Example.
Detailed Description
Example: Some Sudoku puzzles using set constraintsDoes 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 Space * | copy (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] |
SudokuSet::SudokuSet | ( | bool | share, | |
SudokuSet & | s | |||
) | [inline] |
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] |
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:
- examples/sudoku-set.cc (Revision: 3517)