Changes

From Genome Analysis Wiki
Jump to navigationJump to search
Created page with "<source lang="cpp"> bool BestAlignment::isNewPosition(unsigned int pos) { int h = IterateCache(pos); if (cache[h] == pos) return false; cache[h] = pos; cacheItems++; ..."
<source lang="cpp">
bool BestAlignment::isNewPosition(unsigned int pos)
{
int h = IterateCache(pos);

if (cache[h] == pos)
return false;

cache[h] = pos;
cacheItems++;

if (cacheItems * 2 > cacheSize)
SetCacheSize(cacheSize * 2);

return true;
}
</source>

Navigation menu