mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-29 15:04:05 +03:00
36 lines
682 B
C++
36 lines
682 B
C++
|
#include "stringInfosHasher.h"
|
||
|
// The following class defines a hash function for strings
|
||
|
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
namespace HashMapSpace
|
||
|
{
|
||
|
stringInfosHasher::stringInfosHasher ( long cle, string cleTxt, vector<string> valueVecInt )
|
||
|
{
|
||
|
m_hashKey=cle;
|
||
|
m_key=cleTxt;
|
||
|
m_value=valueVecInt;
|
||
|
}
|
||
|
// stringInfosHasher::~stringInfosHasher(){};*/
|
||
|
long stringInfosHasher::getHashKey()
|
||
|
{
|
||
|
return m_hashKey;
|
||
|
}
|
||
|
string stringInfosHasher::getKey()
|
||
|
{
|
||
|
return m_key;
|
||
|
}
|
||
|
vector<string> stringInfosHasher::getValue()
|
||
|
{
|
||
|
return m_value;
|
||
|
}
|
||
|
void stringInfosHasher::setValue ( vector<string> value )
|
||
|
{
|
||
|
m_value=value;
|
||
|
}
|
||
|
|
||
|
|
||
|
// typedef stdext::hash_map<string, string, stringhasher> HASH_S_S;
|
||
|
}
|