lm::ngram::WriteWordsWrapper Class Reference

#include <vocab.hh>

Inheritance diagram for lm::ngram::WriteWordsWrapper:

Inheritance graph
[legend]
Collaboration diagram for lm::ngram::WriteWordsWrapper:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 WriteWordsWrapper (EnumerateVocab *inner)
void Add (WordIndex index, const StringPiece &str)
const std::string & Buffer () const
void Write (int fd, uint64_t start)


Detailed Description

Definition at line 51 of file vocab.hh.


Constructor & Destructor Documentation

lm::ngram::WriteWordsWrapper::WriteWordsWrapper ( EnumerateVocab inner  ) 

Definition at line 84 of file vocab.cc.


Member Function Documentation

void lm::ngram::WriteWordsWrapper::Add ( WordIndex  index,
const StringPiece str 
) [virtual]

Implements lm::EnumerateVocab.

Definition at line 86 of file vocab.cc.

References lm::EnumerateVocab::Add(), StringPiece::data(), and StringPiece::size().

Here is the call graph for this function:

const std::string& lm::ngram::WriteWordsWrapper::Buffer (  )  const [inline]

Definition at line 57 of file vocab.hh.

void lm::ngram::WriteWordsWrapper::Write ( int  fd,
uint64_t  start 
)

Definition at line 92 of file vocab.cc.

References util::SeekOrThrow(), swap(), and util::WriteOrThrow().

Here is the call graph for this function:


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

Generated on Thu Jul 6 00:32:46 2017 for Moses by  doxygen 1.5.9