22 |
ContainerList::ContainerList(GUIUpdate* update) |
ContainerList::ContainerList(GUIUpdate* update) |
23 |
: SolutionContainer(update) |
: SolutionContainer(update) |
24 |
{ |
{ |
25 |
total = -1; |
total = 0; |
26 |
} |
} |
27 |
|
|
28 |
|
|
64 |
if (m_halt) |
if (m_halt) |
65 |
return; |
return; |
66 |
match_count = 0; |
match_count = 0; |
67 |
Solution* tmp = (*i)->copy(); |
|
68 |
|
std::auto_ptr<Solution> tmp ( (*i)->copy() ); |
69 |
if (mirror) |
if (mirror) |
70 |
tmp->mirror(); |
tmp->mirror(); |
71 |
for (int k=0;k<rot;k++) |
for (int k=0;k<rot;k++) |
90 |
|
|
91 |
void ContainerList::addSolution(Solution* sol) |
void ContainerList::addSolution(Solution* sol) |
92 |
{ |
{ |
93 |
solutions.push_back(sol); |
solutions.push_back(boost::shared_ptr<Solution>(sol)); |
94 |
|
total++; |
95 |
} |
} |
96 |
|
|
97 |
Solution* ContainerList::solution(int index) |
Solution* ContainerList::solution(int index) |
104 |
break; |
break; |
105 |
} |
} |
106 |
} |
} |
107 |
return *it; |
return (*it).get(); |
108 |
} |
} |
109 |
|
|