34 |
class Queens : public QThread |
class Queens : public QThread |
35 |
{ |
{ |
36 |
public: |
public: |
37 |
Queens(GUIUpdate *par, SolutionContainer *sol, int set_size = 8, bool set_debug = false); |
Queens(GUIUpdate *par, Solution* sol,SolutionContainer *container, int set_size = 8, bool set_debug = false); |
38 |
void stop(); |
void stop(); |
39 |
private: |
private: |
40 |
bool blocked; |
bool m_blocked; |
41 |
int size; |
int m_size; |
42 |
bool debug; |
bool m_debug; |
43 |
Solution solution; |
Solution* m_solution; |
44 |
GUIUpdate* parent; |
GUIUpdate* m_parent; |
45 |
|
|
46 |
SolutionContainer *solutions; |
SolutionContainer* m_solutions; |
47 |
|
|
48 |
//checkXXX() functions returns true if a section is usable |
//checkXXX() functions returns true if a section is usable |
49 |
bool checkRows(int row, int col); |
bool checkRows(int row, int col); |
50 |
bool checkCols(int row, int col); |
bool checkCols(int row, int col); |