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

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


using namespace std;

namespace HashMapSpace
{
stringHasher::stringHasher ( long cle, string cleTxt, string valueTxt )
{
  m_hashKey=cle;
  m_key=cleTxt;
  m_value=valueTxt;
}
//     stringHasher::~stringHasher(){};*/
long  stringHasher::getHashKey()
{
  return m_hashKey;
}
string  stringHasher::getKey()
{
  return m_key;
}
string  stringHasher::getValue()
{
  return m_value;
}
void stringHasher::setValue ( string  value )
{
  m_value=value;
}


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