lm::ARPAOutput Class Reference

#include <arpa_io.hh>

Collaboration diagram for lm::ARPAOutput:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ARPAOutput (const char *name, size_t buffer_size=65536)
void ReserveForCounts (std::streampos reserve)
void BeginLength (unsigned int length)
void AddNGram (const StringPiece &line)
void AddNGram (const StringPiece &ngram, const StringPiece &line)
template<class Iterator >
void AddNGram (const Iterator &begin, const Iterator &end, const StringPiece &line)
void EndLength (unsigned int length)
void Finish ()


Detailed Description

Definition at line 39 of file arpa_io.hh.


Constructor & Destructor Documentation

lm::ARPAOutput::ARPAOutput ( const char *  name,
size_t  buffer_size = 65536 
) [explicit]

Definition at line 48 of file arpa_io.cc.


Member Function Documentation

template<class Iterator >
void lm::ARPAOutput::AddNGram ( const Iterator &  begin,
const Iterator &  end,
const StringPiece line 
) [inline]

Definition at line 56 of file arpa_io.hh.

References AddNGram().

Here is the call graph for this function:

void lm::ARPAOutput::AddNGram ( const StringPiece ngram,
const StringPiece line 
) [inline]

Definition at line 52 of file arpa_io.hh.

References AddNGram().

Here is the call graph for this function:

void lm::ARPAOutput::AddNGram ( const StringPiece line  )  [inline]

Definition at line 47 of file arpa_io.hh.

Referenced by AddNGram().

Here is the caller graph for this function:

void lm::ARPAOutput::BeginLength ( unsigned int  length  ) 

Definition at line 57 of file arpa_io.cc.

void lm::ARPAOutput::EndLength ( unsigned int  length  ) 

Definition at line 61 of file arpa_io.cc.

void lm::ARPAOutput::Finish (  ) 

Definition at line 69 of file arpa_io.cc.

References util::FileStream::flush(), util::FileStream::seekp(), and lm::WriteCounts().

Here is the call graph for this function:

void lm::ARPAOutput::ReserveForCounts ( std::streampos  reserve  ) 

Definition at line 51 of file arpa_io.cc.


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

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