Difference between revisions of "830 - BestAlignment::isNewPosition()"
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++; ...") |
(No difference)
|
Latest revision as of 13:51, 28 October 2013
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;
}