MatchRemote Class Reference

#include <SSAHAClient.h>

Inheritance diagram for MatchRemote:

Inheritance graph
[legend]
Collaboration diagram for MatchRemote:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MatchRemote (vector< QueryInfo > &query)
virtual ~MatchRemote ()
virtual SequenceNumber getSubjectNum (void) const
virtual const char * getSubjectName (void) const
virtual SequenceOffset getSubjectStart (void) const
virtual SequenceOffset getSubjectEnd (void) const
virtual SequenceNumber getQueryNum (void) const
virtual string getQueryName (void) const
virtual SequenceOffset getQueryStart (void) const
virtual SequenceOffset getQueryEnd (void) const
virtual int getQuerySize (void) const
virtual int getNumBases (void) const
virtual bool isQueryForward (void) const
virtual bool isSubjectForward (void) const
virtual void print (void) const

Public Attributes

MatchInfo data_
map< SequenceNumber, std::string > names_

Private Attributes

vector< QueryInfo > & query_

Detailed Description

Definition at line 49 of file SSAHAClient.h.


Constructor & Destructor Documentation

MatchRemote::MatchRemote ( vector< QueryInfo > &  query  ) 

Definition at line 47 of file SSAHAClient.cpp.

00047                                                    :
00048   query_(query) {}  

MatchRemote::~MatchRemote (  )  [virtual]

Definition at line 50 of file SSAHAClient.cpp.

00050 {}


Member Function Documentation

virtual SequenceNumber MatchRemote::getSubjectNum ( void   )  const [inline, virtual]

Implements Match.

Definition at line 55 of file SSAHAClient.h.

References data_, and MatchInfo::subjectNum.

00056     { return data_.subjectNum; }

virtual const char* MatchRemote::getSubjectName ( void   )  const [inline, virtual]

Implements Match.

Definition at line 57 of file SSAHAClient.h.

References data_, names_, and MatchInfo::subjectNum.

00058     { return names_[ data_.subjectNum ].c_str(); }

virtual SequenceOffset MatchRemote::getSubjectStart ( void   )  const [inline, virtual]

Implements Match.

Definition at line 59 of file SSAHAClient.h.

References data_, and MatchInfo::subjectStart.

00060     { return data_.subjectStart; }

virtual SequenceOffset MatchRemote::getSubjectEnd ( void   )  const [inline, virtual]

Implements Match.

Definition at line 61 of file SSAHAClient.h.

References data_, and MatchInfo::subjectEnd.

00062     { return data_.subjectEnd; }

virtual SequenceNumber MatchRemote::getQueryNum ( void   )  const [inline, virtual]

Implements Match.

Definition at line 64 of file SSAHAClient.h.

References data_, and MatchInfo::queryNum.

00065     { return data_.queryNum; }

string MatchRemote::getQueryName ( void   )  const [inline, virtual]

Implements Match.

Definition at line 53 of file SSAHAClient.cpp.

References data_, query_, and MatchInfo::queryNum.

00053                                              {
00054   return query_[ data_.queryNum-1 ].second;
00055 } 

virtual SequenceOffset MatchRemote::getQueryStart ( void   )  const [inline, virtual]

Implements Match.

Definition at line 67 of file SSAHAClient.h.

References data_, and MatchInfo::queryStart.

00068     { return data_.queryStart; }

virtual SequenceOffset MatchRemote::getQueryEnd ( void   )  const [inline, virtual]

Implements Match.

Definition at line 70 of file SSAHAClient.h.

References data_, and MatchInfo::queryEnd.

00071     { return data_.queryEnd; }

int MatchRemote::getQuerySize ( void   )  const [inline, virtual]

Implements Match.

Definition at line 57 of file SSAHAClient.cpp.

References data_, WordSequence::getNumBasesInLast(), hello, query_, MatchInfo::queryNum, and Handshake::wordLength.

00057                                           {
00058   WordSequence& thisSeq(query_[ data_.queryNum-1 ].first);
00059   return (thisSeq.size()==0) 
00060     ? 0 
00061     : (thisSeq.size()-1)*hello.wordLength + thisSeq.getNumBasesInLast();
00062 }

Here is the call graph for this function:

virtual int MatchRemote::getNumBases ( void   )  const [inline, virtual]

Implements Match.

Definition at line 74 of file SSAHAClient.h.

References data_, and MatchInfo::numBases.

00075     { return data_.numBases; }

virtual bool MatchRemote::isQueryForward ( void   )  const [inline, virtual]

Implements Match.

Definition at line 76 of file SSAHAClient.h.

References data_, and MatchInfo::isQueryForward.

00077     { return data_.isQueryForward; }

virtual bool MatchRemote::isSubjectForward ( void   )  const [inline, virtual]

Implements Match.

Definition at line 78 of file SSAHAClient.h.

References data_, and MatchInfo::isSubjectForward.

00079     { return data_.isSubjectForward; }

virtual void MatchRemote::print ( void   )  const [inline, virtual]

Implements Match.

Definition at line 81 of file SSAHAClient.h.

00081 {}


Member Data Documentation

MatchInfo MatchRemote::data_

Definition at line 82 of file SSAHAClient.h.

Referenced by getNumBases(), getQueryEnd(), getQueryName(), getQueryNum(), getQuerySize(), getQueryStart(), getSubjectEnd(), getSubjectName(), getSubjectNum(), getSubjectStart(), isQueryForward(), isSubjectForward(), and sendQuery().

map<SequenceNumber,std::string> MatchRemote::names_ [mutable]

Definition at line 83 of file SSAHAClient.h.

Referenced by getSubjectName(), and sendQuery().

vector<QueryInfo>& MatchRemote::query_ [private]

Definition at line 85 of file SSAHAClient.h.

Referenced by getQueryName(), and getQuerySize().


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