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

Diff of /queensgui/src/containerhash.cpp

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

revision 14 by torben, Fri Jul 20 09:54:09 2007 UTC revision 15 by torben, Wed Jul 25 19:39:37 2007 UTC
# Line 23  Line 23 
23  ContainerHash::ContainerHash(GUIUpdate* update)  ContainerHash::ContainerHash(GUIUpdate* update)
24    : SolutionContainer(update)    : SolutionContainer(update)
25  {  {
26      total = -1;      total = 0;
27      m_size = 0;      m_size = 0;
28      m_hashroof = max_size;      m_hashroof = max_size;
29      for (int i=0; i< max_size; i++)      for (int i=0; i< max_size; i++)
# Line 125  void ContainerHash::addSolution(Solution Line 125  void ContainerHash::addSolution(Solution
125      int hash = m_size % max_size;      int hash = m_size % max_size;
126          solutions[hash]->push_back( boost::shared_ptr<Solution>(sol) );            solutions[hash]->push_back( boost::shared_ptr<Solution>(sol) );  
127      m_size++;      m_size++;
128            total++;
129    
130  }  }
131    

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

  ViewVC Help
Powered by ViewVC 1.1.20