Skip to content

Commit

Permalink
More debugging statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosangela Canino-Koning committed Jul 7, 2010
1 parent 30c7f5a commit 479f36c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Caper/MappingEngine.h
Expand Up @@ -43,7 +43,9 @@ class MappingEngine

void Next()
{
cout << "~~MappingEngine - Next - CurrentIndex: " << mIndex << endl;
mIndex = mMappingEngine->GetNextIndex( mContigName, mIndex );
cout << "~~MappingEngine - Next - NextIndex: " << mIndex << endl;
}

void Previous()
Expand Down Expand Up @@ -155,6 +157,7 @@ class MappingEngine
ReadsAtIndex * GetReads( string & aContigIdent, long long aIndex )
{
cout << "~~MappingEngine - GetReads" << aContigIdent << " index " << aIndex << " window " << IndexToWindowNumber(aIndex) << endl;

PopulateCorrectCache( aContigIdent, IndexToWindowNumber(aIndex) );
cout << "~~MappingEngine - GetReads - Done Populating Correct Cache" << endl;
return mCurrentCache->GetReads( aIndex );
Expand Down Expand Up @@ -192,6 +195,7 @@ class MappingEngine
bool lStart = true;
for ( iterator lIt = At( aContigIdent, lIntersectLeft ); lIt != End( aContigIdent ) && lIt.GetIndex() <= lRight.GetIndex(); lIt.Next() )
{
cout << "~~MappingEngine - GetIntersection - inside loop" << endl;
if (!lStart || lIt.GetReads()->size() > 0 ) // kludge to avoid pushing an empty set of reads.
lReads->insert( IndexedMappings::value_type( lIt.GetIndex(), lIt.GetReads() ) );

Expand Down

0 comments on commit 479f36c

Please sign in to comment.