Sudoku Class Reference
Inherits Example.
Inherited by SudokuCpltSet [virtual]
, SudokuInt [virtual]
, and SudokuSet [virtual]
.
Detailed Description
Base class for Sudoku puzzles.Definition at line 65 of file sudoku.cc.
Sudoku specifications | |
Each specification gives the initial positions that are filled in, with blank squares represented as zeroes. | |
const char * | examples [] |
The specifications. | |
const unsigned int | n_examples = sizeof(examples)/sizeof(char*) |
The number of instances. | |
int | example_size (const char *s) |
The size of an instance. | |
int | sudokuField (const char *s, int n, int i, int j) |
Return value at position (i,j) in the example s of size n. | |
Public Types | |
enum | { MODEL_INT, MODEL_SET, MODEL_MIXED, MODEL_CPLT } |
Model variants. More... | |
Public Member Functions | |
Sudoku (const SizeOptions &opt) | |
Constructor. | |
Sudoku (bool share, Sudoku &s) | |
Constructor for cloning s. | |
Protected Attributes | |
const int | n |
The size of the problem. |
Member Enumeration Documentation
anonymous enum |
Constructor & Destructor Documentation
Sudoku::Sudoku | ( | const SizeOptions & | opt | ) | [inline] |
Sudoku::Sudoku | ( | bool | share, | |
Sudoku & | s | |||
) | [inline] |
Friends And Related Function Documentation
const unsigned int n_examples = sizeof(examples)/sizeof(char*) [related] |
int example_size | ( | const char * | s | ) | [related] |
int sudokuField | ( | const char * | s, | |
int | n, | |||
int | i, | |||
int | j | |||
) | [related] |
Member Data Documentation
The documentation for this class was generated from the following file:
- examples/sudoku.cc (Revision: 6034)