17 |
* Free Software Foundation, Inc., * |
* Free Software Foundation, Inc., * |
18 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 |
***************************************************************************/ |
***************************************************************************/ |
20 |
|
/* |
21 |
|
|
22 |
#ifndef SOLUTIONINT_H |
#ifndef SOLUTIONINT_H |
23 |
#define SOLUTIONINT_H |
#define SOLUTIONINT_H |
24 |
|
|
25 |
#include <solution.h> |
#include <solution.h> |
26 |
#include "config.h" |
#include "config.h" |
27 |
|
|
28 |
class SolutionInt : public Solution |
class SolutionInt |
29 |
{ |
{ |
30 |
public: |
public: |
31 |
SolutionInt(int size); |
SolutionInt(int size); |
32 |
|
|
33 |
~SolutionInt(); |
~SolutionInt(); |
34 |
|
|
35 |
virtual bool getMatrix(int x, int y); |
bool getMatrix(int x, int y); |
36 |
virtual void setMatrix(int x, int y, bool val); |
void setMatrix(int x, int y, bool val); |
37 |
virtual bool operator ==(const Solution& sol); |
bool operator ==(const IntSolution& sol); |
38 |
|
|
39 |
virtual Solution* copy(); |
Solution* copy(); |
40 |
virtual void mirror(); |
void mirror(); |
41 |
virtual void rotate90(); |
void rotate90(); |
42 |
private: |
private: |
43 |
explicit SolutionInt(const SolutionInt& input); |
explicit SolutionInt(const SolutionInt& input); |
44 |
void set(unsigned char[MAX_SIZE]); |
void set(unsigned char[MAX_SIZE]); |
47 |
}; |
}; |
48 |
|
|
49 |
#endif |
#endif |
50 |
|
|
51 |
|
*/ |