/[projects]/queensgui/src/containerlist.cpp
ViewVC logotype

Diff of /queensgui/src/containerlist.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by torben, Thu Jul 19 23:44:01 2007 UTC revision 15 by torben, Wed Jul 25 19:39:37 2007 UTC
# Line 22  Line 22 
22  ContainerList::ContainerList(GUIUpdate* update)  ContainerList::ContainerList(GUIUpdate* update)
23   : SolutionContainer(update)   : SolutionContainer(update)
24  {  {
25      total = -1;      total = 0;
26  }  }
27    
28    
# Line 64  void ContainerList::uniqueSolutionsWorke Line 64  void ContainerList::uniqueSolutionsWorke
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++)
# Line 89  void ContainerList::uniqueSolutionsWorke Line 90  void ContainerList::uniqueSolutionsWorke
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)
# Line 102  Solution* ContainerList::solution(int in Line 104  Solution* ContainerList::solution(int in
104                  break;                  break;
105                  }                  }
106      }      }
107      return *it;      return (*it).get();
108  }  }
109    

Legend:
Removed from v.4  
changed lines
  Added in v.15

  ViewVC Help
Powered by ViewVC 1.1.20