/[projects]/queensgui/html/queens_8h-source.html
ViewVC logotype

Annotation of /queensgui/html/queens_8h-source.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations) (download) (as text)
Thu Jul 19 21:34:15 2007 UTC (16 years, 10 months ago) by torben
File MIME type: text/html
File size: 6075 byte(s)
Initial import


1 torben 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2     <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3     <title>queensgui.kdevelop: development/queensgui/src/queens.h Source File</title>
4     <link href="doxygen.css" rel="stylesheet" type="text/css">
5     </head><body>
6     <!-- Generated by Doxygen 1.3.9.1 -->
7     <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a></div>
8     <div class="nav">
9     <a class="el" href="dir_000000.html">development</a>&nbsp;/&nbsp;<a class="el" href="dir_000001.html">queensgui</a>&nbsp;/&nbsp;<a class="el" href="dir_000002.html">src</a></div>
10     <h1>queens.h</h1><div class="fragment"><pre class="fragment">00001 <span class="comment">/***************************************************************************</span>
11     00002 <span class="comment"> * Copyright (C) 2005 by Torben Nielsen *</span>
12     00003 <span class="comment"> * torben@t-hoerup.dk *</span>
13     00004 <span class="comment"> * *</span>
14     00005 <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span>
15     00006 <span class="comment"> * it under the terms of the GNU General Public License as published by *</span>
16     00007 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span>
17     00008 <span class="comment"> * (at your option) any later version. *</span>
18     00009 <span class="comment"> * *</span>
19     00010 <span class="comment"> * This program is distributed in the hope that it will be useful, *</span>
20     00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of *</span>
21     00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *</span>
22     00013 <span class="comment"> * GNU General Public License for more details. *</span>
23     00014 <span class="comment"> * *</span>
24     00015 <span class="comment"> * You should have received a copy of the GNU General Public License *</span>
25     00016 <span class="comment"> * along with this program; if not, write to the *</span>
26     00017 <span class="comment"> * Free Software Foundation, Inc., *</span>
27     00018 <span class="comment"> * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *</span>
28     00019 <span class="comment"> ***************************************************************************/</span>
29     00020 <span class="preprocessor">#ifndef QUEENS_H</span>
30     00021 <span class="preprocessor"></span><span class="preprocessor">#define QUEENS_H</span>
31     00022 <span class="preprocessor"></span>
32     00023 <span class="preprocessor">#include &lt;qthread.h&gt;</span>
33     00024
34     00025
35     00026 <span class="keyword">class </span><a class="code" href="classSolution.html">Solution</a>;
36     00027 <span class="keyword">class </span><a class="code" href="classSolutionContainer.html">SolutionContainer</a>;
37     00028 <span class="keyword">class </span><a class="code" href="classQueensMain.html">QueensMain</a>;
38     00029
39     <a name="l00034"></a><a class="code" href="classQueens.html">00034</a> <span class="keyword">class </span><a class="code" href="classQueens.html">Queens</a> : <span class="keyword">public</span> QThread
40     00035 {
41     00036 <span class="keyword">private</span>:
42     00037 <span class="keywordtype">bool</span> blocked;
43     00038 <span class="keywordtype">int</span> size;
44     00039 <span class="keywordtype">bool</span> debug;
45     00040 <a class="code" href="classSolution.html">Solution</a> solution;
46     00041 <a class="code" href="classQueensMain.html">QueensMain</a> *parent;
47     00042
48     00043 <a class="code" href="classSolutionContainer.html">SolutionContainer</a> *solutions;
49     00044 <span class="comment">//checkXXX() functions returns true if a section is usable</span>
50     00045 <span class="keywordtype">bool</span> checkRows(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col);
51     00046 <span class="keywordtype">bool</span> checkCols(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col);
52     00047 <span class="keywordtype">bool</span> checkCross1(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col);
53     00048 <span class="keywordtype">bool</span> checkCross2(<span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col);
54     00049
55     00050 <span class="keywordtype">bool</span> solve(<span class="keywordtype">int</span> row, <span class="keywordtype">bool</span> findAll);
56     00051
57     00052
58     00053 <span class="keywordtype">void</span> run();
59     00054 <span class="keywordtype">bool</span> solve();
60     00055
61     00056 <span class="keywordtype">void</span> findAll();
62     00057 <span class="keyword">public</span>:
63     00058 <a class="code" href="classQueens.html">Queens</a>(<a class="code" href="classQueensMain.html">QueensMain</a> *par, <a class="code" href="classSolutionContainer.html">SolutionContainer</a> *sol, <span class="keywordtype">int</span> set_size = 8, <span class="keywordtype">bool</span> set_debug = <span class="keyword">false</span>);
64     00059 <span class="keywordtype">void</span> stop();
65     00060 };
66     00061
67     00062 <span class="preprocessor">#endif</span>
68     </pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Aug 14 15:33:57 2005 for queensgui.kdevelop by&nbsp;
69     <a href="http://www.doxygen.org/index.html">
70     <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
71     </body>
72     </html>

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20