Antonie
16ssearcher.hh
Go to the documentation of this file.
00001 #pragma once
00002 #include <string>
00003 #include <stdint.h>
00004 #include <vector>
00005 #include <map>
00006 
00007 struct Entry16S
00008 {
00009   uint32_t id;
00010   int hits;
00011 };
00012 
00014 class Search16S
00015 {
00016 public:
00017   Search16S(const std::string& src, int indexLength);
00018   void score(const std::string& nucleotides);
00019   std::vector<Entry16S> topScores();
00020   void printTop(unsigned int top);
00021 private:
00022   typedef std::map<uint32_t, std::vector<unsigned int> > hashes_t;
00023   hashes_t d_hashes;
00024   std::vector<Entry16S> d_entries;
00025 };
 All Classes Files Functions Variables Typedefs Friends Defines