mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
3ef02eb7e6
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4146 1f5c12ca-751b-0410-a591-d2e778427230
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;
|
|
}
|