00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __HASHMAP_H__
00025 #define __HASHMAP_H__
00026 #include <boost/functional/hash.hpp>
00027 #include "stringHasher.h"
00028 #include <vector>
00029 #include <string>
00030 #include <sstream>
00031 #include <fstream>
00032 #include <locale>
00033
00034 using namespace std;
00035
00036 namespace TERCPPNS_HashMapSpace
00037 {
00038 class hashMap
00039 {
00040 private:
00041 vector<stringHasher> m_hasher;
00042
00043 public:
00044
00045 long hashValue ( string key );
00046 int trouve ( long searchKey );
00047 int trouve ( string key );
00048 void addHasher ( string key, string value );
00049 stringHasher getHasher ( string key );
00050 string getValue ( string key );
00051 string searchValue ( string key );
00052 void setValue ( string key , string value );
00053 void printHash();
00054 vector<stringHasher> getHashMap();
00055 string printStringHash();
00056 string printStringHash2();
00057 string printStringHashForLexicon();
00058 };
00059
00060
00061 }
00062
00063
00064 #endif