libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / apps / sudoku / SudokuSolver.h
blob7bfd4f53b0668c17b44fa14f460b76765ab2d741
1 /*
2 * Copyright 2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SUDOKU_SOLVER_H
6 #define SUDOKU_SOLVER_H
9 #include <vector>
11 #include <SupportDefs.h>
13 class SudokuField;
15 class SudokuSolver {
16 public:
17 SudokuSolver(SudokuField* field);
18 SudokuSolver();
19 ~SudokuSolver();
21 void SetTo(SudokuField* field);
23 void ComputeSolutions();
25 uint32 CountSolutions();
26 SudokuField* SolutionAt(uint32 index);
28 private:
29 void _MakeEmpty();
31 typedef std::vector<SudokuField*> SudokuList;
33 SudokuField* fField;
34 SudokuList fSolutions;
37 #endif // SUDOKU_SOLVER_H