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/solution.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 Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a></div> |
8 |
<div class="nav"> |
9 |
<a class="el" href="dir_000000.html">development</a> / <a class="el" href="dir_000001.html">queensgui</a> / <a class="el" href="dir_000002.html">src</a></div> |
10 |
<h1>solution.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 SOLUTION_H</span> |
30 |
00021 <span class="preprocessor"></span><span class="preprocessor">#define SOLUTION_H</span> |
31 |
00022 <span class="preprocessor"></span> |
32 |
00023 <span class="preprocessor">#include "config.h"</span> |
33 |
00024 |
34 |
<a name="l00028"></a><a class="code" href="classSolution.html">00028</a> <span class="keyword">class </span><a class="code" href="classSolution.html">Solution</a> { |
35 |
00029 <span class="keyword">private</span>: |
36 |
00030 <span class="keywordtype">int</span> m_size; |
37 |
00031 <span class="keyword">public</span>: |
38 |
00032 <span class="keywordtype">bool</span> matrix[MAX_SIZE][MAX_SIZE]; |
39 |
00033 |
40 |
00034 <span class="comment">// functions</span> |
41 |
00035 <a class="code" href="classSolution.html">Solution</a>(<span class="keywordtype">int</span> size=8); |
42 |
00036 <span class="comment">// Solution(int size, bool input[MAX_SIZE][MAX_SIZE]);</span> |
43 |
00037 <a class="code" href="classSolution.html">Solution</a>(<span class="keyword">const</span> <a class="code" href="classSolution.html">Solution</a> &input); |
44 |
00038 ~<a class="code" href="classSolution.html">Solution</a>(); |
45 |
00039 |
46 |
00040 <span class="keywordtype">void</span> set(<span class="keywordtype">bool</span> input[MAX_SIZE][MAX_SIZE]); |
47 |
00041 <span class="keywordtype">void</span> rotate90(); |
48 |
00042 <span class="keywordtype">void</span> mirror(); |
49 |
00043 |
50 |
00044 <span class="comment">//void print();</span> |
51 |
00045 <span class="comment">//void print(bool debug, int row, int col);</span> |
52 |
00046 <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="classSolution.html">Solution</a>& sol); |
53 |
00047 <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classSolution.html">Solution</a>& sol); |
54 |
00048 |
55 |
00049 <span class="keywordtype">int</span> size() {<span class="keywordflow">return</span> m_size;}; |
56 |
00050 <span class="keywordtype">void</span> setSize(<span class="keywordtype">int</span> size) {m_size = size;}; |
57 |
00051 }; |
58 |
00052 |
59 |
00053 <span class="preprocessor">#endif</span> |
60 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Aug 14 15:33:57 2005 for queensgui.kdevelop by |
61 |
<a href="http://www.doxygen.org/index.html"> |
62 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address> |
63 |
</body> |
64 |
</html> |