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 __HASHMAPINFOS_H__
00025 #define __HASHMAPINFOS_H__
00026 #include <boost/functional/hash.hpp>
00027 #include "infosHasher.h"
00028 #include <vector>
00029 #include <string>
00030 #include <sstream>
00031 #include <fstream>
00032
00033 using namespace std;
00034
00035 namespace TERCPPNS_HashMapSpace
00036 {
00037 class hashMapInfos
00038 {
00039 private:
00040 vector<infosHasher> m_hasher;
00041
00042 public:
00043
00044 long hashValue ( string key );
00045 int trouve ( long searchKey );
00046 int trouve ( string key );
00047 void addHasher ( string key, vector<int> value );
00048 void addValue ( string key, vector<int> value );
00049 infosHasher getHasher ( string key );
00050 vector<int> getValue ( string key );
00051
00052 void setValue ( string key , vector<int> value );
00053 void printHash();
00054 string toString();
00055 vector<infosHasher> getHashMap();
00056 string printStringHash();
00057 string printStringHash2();
00058 string printStringHashForLexicon();
00059 };
00060
00061
00062 }
00063
00064
00065 #endif