--- queensgui/src/solutionhash.cpp 2007/07/19 22:26:42 2 +++ queensgui/src/solutionhash.cpp 2007/07/19 23:36:33 3 @@ -17,9 +17,9 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include "solutionhash.h" +#include "containerhash.h" -SolutionHash::SolutionHash(GUIUpdate* update) +ContainerHash::ContainerHash(GUIUpdate* update) : SolutionContainer(update) { total = -1; @@ -31,11 +31,11 @@ } -SolutionHash::~SolutionHash() +ContainerHash::~ContainerHash() { } -int SolutionHash::numSolutions() +int ContainerHash::numSolutions() { int size = 0; for (int i=0; i1 ) { for (int bucket=0; bucket < m_hashroof; bucket++) { @@ -88,7 +88,7 @@ -void SolutionHash::uniqueSolutionsWorker(int bucket, int rot,bool mirror) +void ContainerHash::uniqueSolutionsWorker(int bucket, int rot,bool mirror) { int match_count; @@ -121,7 +121,7 @@ /* BACKUP -void SolutionHash::uniqueSolutionsWorker(int rot,bool mirror) +void ContainerHash::uniqueSolutionsWorker(int rot,bool mirror) { int match_count; @@ -150,14 +150,14 @@ } */ -void SolutionHash::addSolution(Solution* sol) +void ContainerHash::addSolution(Solution* sol) { int hash = m_size % max_size; solutions[hash]->push_back(sol); m_size++; } -Solution* SolutionHash::solution(int index) +Solution* ContainerHash::solution(int index) { int count=0; ListIt it;