MASA-Core
Public Member Functions | Private Attributes
CPUBlockProcessor Class Reference

Detailed Description

Definition at line 39 of file CPUBlockProcessor.hpp.

#include <CPUBlockProcessor.hpp>

Inheritance diagram for CPUBlockProcessor:
AbstractBlockProcessor

List of all members.

Public Member Functions

 CPUBlockProcessor ()
virtual ~CPUBlockProcessor ()
virtual void setSequences (const char *seq0, const char *seq1, int seq0_len, int seq1_len)
virtual void unsetSequences ()
virtual score_t processBlock (cell_t *row, cell_t *col, const int i0, const int j0, const int i1, const int j1, const int recurrenceType)
 Executes the SW/NW recurrence function for the given block.

Private Attributes

const char * seq0
const char * seq1

Constructor & Destructor Documentation

Definition at line 35 of file CPUBlockProcessor.cpp.

Definition at line 40 of file CPUBlockProcessor.cpp.


Member Function Documentation

score_t CPUBlockProcessor::processBlock ( cell_t row,
cell_t col,
const int  i0,
const int  j0,
const int  i1,
const int  j1,
const int  recurrenceType 
) [virtual]

Executes the SW/NW recurrence function for the given block.

Parameters:
[in,out]rowInput: cells from the first row of the block, where row[k] represents cell (i0-1,j0+k); Output: the same range is used for write, but the output represents the last row of the block;
[in,out]colInput: cells from the first column of the partition, where col[k] represents cell (i0-1+k,j0-1). Note that the col vector contains the diag cell (i0-1,j0-1). Output: the same idea, but representing the last column of the partition. Note that col[0] represents the diag cell (i0-1,j0-1).
[in]i0start row
[in]j0start column
[in]i1end row
[in]j1end column
Returns:

Implements AbstractBlockProcessor.

Definition at line 113 of file CPUBlockProcessor.cpp.

void CPUBlockProcessor::setSequences ( const char *  seq0,
const char *  seq1,
int  seq0_len,
int  seq1_len 
) [virtual]

Implements AbstractBlockProcessor.

Definition at line 44 of file CPUBlockProcessor.cpp.

Implements AbstractBlockProcessor.

Definition at line 49 of file CPUBlockProcessor.cpp.


Member Data Documentation

const char* CPUBlockProcessor::seq0 [private]

Definition at line 50 of file CPUBlockProcessor.hpp.

const char* CPUBlockProcessor::seq1 [private]

Definition at line 51 of file CPUBlockProcessor.hpp.


The documentation for this class was generated from the following files: