Added code to identify snps and update the gneome accordingly. This code has an insid...
[htsworkflow.git] / htswanalysis / src / GetReadsInSnps / chrom_list.h
1 #include <ext/hash_map>
2
3 #ifndef CHROMLIST_H
4 #define CHROMLIST_H
5
6 using namespace std;
7 using namespace __gnu_cxx;
8
9 struct eq_str {
10   bool operator() (const string& a, const string& b) const {
11     return(strcmp(a.c_str(), b.c_str()) == 0);
12   }
13 };
14
15 struct hash_str {
16   size_t operator() (const string& a) const {
17     hash<const char*> h; 
18     return(h(a.c_str())); 
19   }
20 };
21
22 class ChromList : public hash_map<string, string, hash_str, eq_str> {
23   public:
24     ChromList(char* filename);
25 };
26
27 #endif