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

infosHasher.cpp « TERsrc « mert - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 654b0b26f8d45e70464f77d3d573cf99f6b87486 (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
#include "infosHasher.h"
// The following class defines a hash function for strings


using namespace std;

namespace HashMapSpace
{
infosHasher::infosHasher (long cle,string cleTxt, vector<int> valueVecInt )
{
  m_hashKey=cle;
  m_key=cleTxt;
  m_value=valueVecInt;
}
//     infosHasher::~infosHasher(){};*/
long  infosHasher::getHashKey()
{
  return m_hashKey;
}
string  infosHasher::getKey()
{
  return m_key;
}
vector<int> infosHasher::getValue()
{
  return m_value;
}
void infosHasher::setValue ( vector<int>   value )
{
  m_value=value;
}


// typedef stdext::hash_map<std::string,string, stringhasher> HASH_S_S;
}