MatchPolicyDNADNA Class Reference

#include <QueryManager.h>

Inheritance diagram for MatchPolicyDNADNA:

Inheritance graph
[legend]
Collaboration diagram for MatchPolicyDNADNA:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MatchPolicyDNADNA (HashTableGeneric &subjectTable)
virtual void operator() (WordSequence &querySeqFwd, MatchStore &store, MatchAlgorithm &findMatch)

Detailed Description

Definition at line 258 of file QueryManager.h.


Constructor & Destructor Documentation

MatchPolicyDNADNA::MatchPolicyDNADNA ( HashTableGeneric subjectTable  ) 

Definition at line 172 of file QueryManager.cpp.

References MatchPolicy::addMatch_, and MatchPolicy::subjectTable_.

Referenced by QueryManager::QueryManager().

00172                                                                      :
00173 MatchPolicy( subjectTable )
00174 {
00175  addMatch_ = new MatchAdderImp(subjectTable_); 
00176 }

Here is the caller graph for this function:


Member Function Documentation

void MatchPolicyDNADNA::operator() ( WordSequence querySeqFwd,
MatchStore store,
MatchAlgorithm findMatch 
) [virtual]

Implements MatchPolicy.

Definition at line 180 of file QueryManager.cpp.

References MatchPolicy::addMatch_, WordSequence::getNumBasesInLast(), HashTableGeneric::getWordLength(), MatchAdder::link(), MatchPolicy::queryWordLength_, reverseComplement(), MatchAdder::setQueryForward(), MatchAdder::setQueryReverse(), MatchAdder::setQuerySize(), and MatchPolicy::subjectTable_.

00182 {
00183 
00184   addMatch_->link(store);
00185   addMatch_->setQuerySize( ((querySeqFwd.size()-1) * queryWordLength_ )
00186       + querySeqFwd.getNumBasesInLast() );
00187 
00188   WordSequence querySeqRev;
00189   reverseComplement
00190     ( querySeqFwd, querySeqRev, 
00191       subjectTable_.getWordLength() ); 
00192 
00193   addMatch_->setQueryForward();
00194 
00195   findMatch( querySeqFwd, *addMatch_, subjectTable_ ); 
00196 
00197   addMatch_->setQueryReverse();
00198 
00199   findMatch( querySeqRev, *addMatch_, subjectTable_ );
00200 
00201 } // ~QueryManager::doMatch

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 13:18:36 2007 for ssaha by  doxygen 1.5.2