Algo Class Reference

#include <algo.h>

Inheritance diagram for Algo:

Inheritance graph
[legend]
Collaboration diagram for Algo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Algo (TrapperDoc *pDoc_, std::set< db_recno_t > &recnoList, AlgoParam *param=0, QObject *parent=0, const char *name=0)
virtual ~Algo ()
virtual void start ()=0
void select (db_recno_t recno, bool status)

Protected Attributes

std::set< db_recno_t > & selectedReads
TrapperDocpDoc
AlgoParammy_param

Detailed Description

Definition at line 30 of file algo.h.


Constructor & Destructor Documentation

Algo::Algo ( TrapperDoc pDoc_,
std::set< db_recno_t > &  recnoList,
AlgoParam param = 0,
QObject parent = 0,
const char *  name = 0 
)

Algo::~Algo (  )  [virtual]

Definition at line 27 of file algo.cpp.

00028 {}


Member Function Documentation

virtual void Algo::start (  )  [pure virtual]

Implemented in FindMatesAlgo, FindTaginfoAlgo, MoveAlgo, OptimizeLayoutAlgo, RAlgo, and StrandsAlgo.

void Algo::select ( db_recno_t  recno,
bool  status 
)

Definition at line 30 of file algo.cpp.

References selectedReads.

00031 {
00032   set<db_recno_t>::iterator pos;
00033   if ( status == true )
00034     selectedReads.insert( recno );
00035   else if ( ( pos = selectedReads.find( recno )) != selectedReads.end() ) {
00036     selectedReads.erase( pos );
00037   }
00038   
00039 }


Member Data Documentation

std::set< db_recno_t >& Algo::selectedReads [protected]

Definition at line 40 of file algo.h.

Referenced by select(), OptimizeLayoutAlgo::start(), MoveAlgo::start(), FindTaginfoAlgo::start(), and FindMatesAlgo::start().

TrapperDoc* Algo::pDoc [protected]

Definition at line 41 of file algo.h.

Referenced by OptimizeLayoutAlgo::start(), MoveAlgo::start(), and FindMatesAlgo::start().

AlgoParam* Algo::my_param [protected]

Definition at line 42 of file algo.h.

Referenced by OptimizeLayoutAlgo::start(), and MoveAlgo::start().


The documentation for this class was generated from the following files:
Generated on Fri Jul 17 20:19:44 2009 for ngsview by  doxygen 1.5.1