#include <algo.h>
Inheritance diagram for Algo:
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 |
TrapperDoc * | pDoc |
AlgoParam * | my_param |
Definition at line 30 of file algo.h.
Algo::Algo | ( | TrapperDoc * | pDoc_, | |
std::set< db_recno_t > & | recnoList, | |||
AlgoParam * | param = 0 , |
|||
QObject * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
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 }
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().