23 |
#include "solutioncontainer.h" |
#include "solutioncontainer.h" |
24 |
|
|
25 |
#include <vector> |
#include <vector> |
26 |
|
#include <boost/shared_ptr.hpp> |
27 |
#include "solution.h" |
#include "solution.h" |
28 |
|
|
29 |
/** |
/** |
30 |
@author Torben Nielsen |
@author Torben Nielsen |
31 |
*/ |
*/ |
32 |
class SolutionVector : public SolutionContainer{ |
class ContainerVector : public SolutionContainer{ |
33 |
protected: |
protected: |
34 |
std::vector<Solution*> solutions; |
std::vector<boost::shared_ptr<Solution> > solutions; |
35 |
typedef std::vector<Solution*>::iterator VIt; |
typedef std::vector<boost::shared_ptr<Solution> >::iterator VIt; |
36 |
void uniqueSolutionsWorker(int rot, bool mirror); |
void uniqueSolutionsWorker(int rot, bool mirror); |
37 |
int total; |
int total; |
38 |
|
|
39 |
public: |
public: |
40 |
SolutionVector(GUIUpdate* update); |
ContainerVector(GUIUpdate* update); |
41 |
|
|
42 |
~SolutionVector(); |
~ContainerVector(); |
43 |
virtual void uniqueSolutions(); |
virtual void uniqueSolutions(); |
44 |
int numSolutions(); |
int numSolutions(); |
45 |
int totalSolutions(); |
int totalSolutions(); |