Welcome to mirror list, hosted at ThFree Co, Russian Federation.

hashMapStringInfos.h « TERsrc « mert - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7912be0a280def6d8d7641c3d2e258fd6198ca85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
 * Generic hashmap manipulation functions
 */
#ifndef __HASHMAPSTRINGINFOS_H__
#define __HASHMAPSTRINGINFOS_H__

#include "stringInfosHasher.h"
#include <vector>
#include <string>
#include <sstream>
#include <fstream>

using namespace std;

namespace HashMapSpace
{
class hashMapStringInfos
{
private:
  vector<stringInfosHasher> m_hasher;

public:
//     ~hashMap();
  long hashValue ( string key );
  int trouve ( long searchKey );
  int trouve ( string key );
  void addHasher ( string key, vector<string>  value );
  void addValue ( string key, vector<string>  value );
  stringInfosHasher getHasher ( string key );
  vector<string> getValue ( string key );
//         string searchValue ( string key );
  void setValue ( string key , vector<string>  value );
  void printHash();
  vector<stringInfosHasher> getHashMap();
  string printStringHash();
  string printStringHash2();
  string printStringHashForLexicon();
};

}

#endif  // __HASHMAPSTRINGINFOS_H__