Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

algo.cpp

Go to the documentation of this file.
00001 /*******************************************************************************
00002  *                                                                             *
00003  *   Copyright (C) 2003  Erik Sjolund,  (<html>Erik Sj&ouml;lund</html>)       *
00004  *                       Center for Genomics and Bioinformatics,               *
00005  *                       Karolinska Institutet,                                *
00006  *                       Stockholm,                                            *
00007  *                       Sweden                                                *
00008  *                                                                             *
00009  *  Author: Erik Sjolund                                                       *
00010  *  Email: erik.sjolund@adivo.se                                               *
00011  *                                                                             *
00012  *******************************************************************************
00013  */
00014 #include "algo.h"
00015 #include "generaldata.h"
00016 #include "readdata.h"
00017 #include "trapperdoc.h"
00018 #include <qmessagebox.h>
00019 #include "algoparam.h"
00020 using namespace std;
00021 
00022 Algo::Algo(TrapperDoc * pDoc_, set< db_recno_t >& recnoList, AlgoParam* param, QObject *parent, const char *name)
00023   : QObject(parent, name), selectedReads( recnoList ), pDoc( pDoc_ ), my_param(param)
00024 {
00025 }
00026 
00027 Algo::~Algo()
00028 {}
00029 
00030 void Algo::select( db_recno_t recno, bool status )
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 }
00040 
00041 
00042 
00043 
00044 
00045 

Generated on Fri Mar 17 17:44:24 2006 for trapper by  doxygen 1.4.4