lm::Controller< Filter, OutputBuffer, RealOutput > Class Template Reference

#include <thread.hh>

Collaboration diagram for lm::Controller< Filter, OutputBuffer, RealOutput >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Controller (size_t batch_size, size_t queue, size_t workers, const Filter &filter, RealOutput &output)
void AddNGram (const StringPiece &ngram, const StringPiece &line, RealOutput &output)
void Flush ()


Detailed Description

template<class Filter, class OutputBuffer, class RealOutput>
class lm::Controller< Filter, OutputBuffer, RealOutput >

Definition at line 100 of file thread.hh.


Constructor & Destructor Documentation

template<class Filter , class OutputBuffer , class RealOutput >
lm::Controller< Filter, OutputBuffer, RealOutput >::Controller ( size_t  batch_size,
size_t  queue,
size_t  workers,
const Filter &  filter,
RealOutput &  output 
) [inline]

Definition at line 105 of file thread.hh.


Member Function Documentation

template<class Filter , class OutputBuffer , class RealOutput >
void lm::Controller< Filter, OutputBuffer, RealOutput >::AddNGram ( const StringPiece ngram,
const StringPiece line,
RealOutput &  output 
) [inline]

Definition at line 119 of file thread.hh.

References lm::InputBuffer::AddNGram(), and lm::InputBuffer::Size().

Here is the call graph for this function:

template<class Filter , class OutputBuffer , class RealOutput >
void lm::Controller< Filter, OutputBuffer, RealOutput >::Flush (  )  [inline]

Definition at line 127 of file thread.hh.


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

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