HashTablePackedCustom Class Reference

Inheritance diagram for HashTablePackedCustom:

Inheritance graph
[legend]
Collaboration diagram for HashTablePackedCustom:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HashTablePackedCustom (ostream &monitoringStream=cerr, string name="")
void convertHits (void)

Detailed Description

Definition at line 72 of file SSAHAWrapper.cpp.


Constructor & Destructor Documentation

HashTablePackedCustom::HashTablePackedCustom ( ostream &  monitoringStream = cerr,
string  name = "" 
) [inline]

Definition at line 76 of file SSAHAWrapper.cpp.

Referenced by loadTable().

00076                                                                           :
00077     HashTablePackedProtein( monitoringStream, name ) 
00078     {}

Here is the caller graph for this function:


Member Function Documentation

void HashTablePackedCustom::convertHits ( void   ) 

Definition at line 88 of file SSAHAWrapper.cpp.

References hitBuffer, hits, HashTablePacked::seqStarts_, and HashTableGeneric::stepLength_.

Referenced by doSearch().

00090 {
00091 
00092   //  sort(hitBuffer.begin(),hitBuffer.end());
00093 
00094   vector<HitPacked>::iterator i(hitBuffer.begin());
00095   vector<SeqStartPos>::iterator j(seqStarts_.begin());
00096   //  hitListFwd.reserve(hitListFwd.size()+hitBuffer.size());
00097   hits.reserve( hits.size() + hitBuffer.size());
00098 
00099   // NB seqStarts_ must not be empty else call to back() segfaults
00100 
00101   while ( (j!=&seqStarts_.back()) && (i!=hitBuffer.end()) )
00102   {
00103     vector<SeqStartPos>::iterator ub(upper_bound(j,seqStarts_.end(),i->first));
00104     j=ub; j--;
00105 
00106     while ((i!=hitBuffer.end())&&(i->first<*ub))
00107     {
00108       //      cout << i->first << " ... " 
00109       //   << ub-seqStarts_.begin() << " " 
00110       //   << stepLength_*(i->first - *j) 
00111       //   << endl;
00112       //      hitListFwd.addHit( ub-seqStarts_.begin(), 
00113       //                    stepLength_*(i->first - *j),
00114       //                    i->second );
00115       hits.push_back();
00116       hits.back().seqNum= ub-seqStarts_.begin();
00117       hits.back().seqPos= stepLength_*(i->first - *j);
00118       //      hitListFwd.addHit( 
00119       //                    
00120       //                    i->second );
00121       
00122       i++;
00123       
00124     } // ~while
00125     j=ub;  
00126   } // ~while
00127 
00128 } // ~HashTablePackedCustom::convertHits( void )

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Generated on Fri Dec 21 13:17:03 2007 for ssaha by  doxygen 1.5.2