Moses::StoreVocab< VOCABID > Class Template Reference

#include <StoreVocab.h>

Inheritance diagram for Moses::StoreVocab< VOCABID >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 StoreVocab (const std::string &path)
virtual ~StoreVocab ()
VOCABID GetVocabId (const std::string &word)
void Insert (VOCABID id, const std::string &word)
void Save ()

Protected Types

typedef boost::unordered_map
< std::string, VOCABID > 
Coll

Protected Attributes

std::string m_path
Coll m_vocab


Detailed Description

template<typename VOCABID>
class Moses::StoreVocab< VOCABID >

Definition at line 17 of file StoreVocab.h.


Member Typedef Documentation

template<typename VOCABID>
typedef boost::unordered_map<std::string, VOCABID> Moses::StoreVocab< VOCABID >::Coll [protected]

Definition at line 22 of file StoreVocab.h.


Constructor & Destructor Documentation

template<typename VOCABID>
Moses::StoreVocab< VOCABID >::StoreVocab ( const std::string &  path  )  [inline]

Definition at line 26 of file StoreVocab.h.

template<typename VOCABID>
virtual Moses::StoreVocab< VOCABID >::~StoreVocab (  )  [inline, virtual]

Definition at line 30 of file StoreVocab.h.


Member Function Documentation

template<typename VOCABID>
VOCABID Moses::StoreVocab< VOCABID >::GetVocabId ( const std::string &  word  )  [inline]

Definition at line 32 of file StoreVocab.h.

Referenced by Moses::StoreTarget::Append().

Here is the caller graph for this function:

template<typename VOCABID>
void Moses::StoreVocab< VOCABID >::Insert ( VOCABID  id,
const std::string &  word 
) [inline]

Definition at line 43 of file StoreVocab.h.

Referenced by Moses::add_to_map().

Here is the caller graph for this function:

template<typename VOCABID>
void Moses::StoreVocab< VOCABID >::Save (  )  [inline]

Definition at line 47 of file StoreVocab.h.

Referenced by Moses::createProbingPT(), and Moses::StoreTarget::~StoreTarget().

Here is the caller graph for this function:


Member Data Documentation

template<typename VOCABID>
std::string Moses::StoreVocab< VOCABID >::m_path [protected]

Definition at line 20 of file StoreVocab.h.

Referenced by Moses::StoreVocab< uint32_t >::Save().

template<typename VOCABID>
Coll Moses::StoreVocab< VOCABID >::m_vocab [protected]


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:33:16 2017 for Moses by  doxygen 1.5.9