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++) |
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 |
|
|