lm::common::ModelBuffer Class Reference

#include <model_buffer.hh>

Collaboration diagram for lm::common::ModelBuffer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ModelBuffer (const std::string &file_base, bool keep_buffer, bool output_q)
 ModelBuffer (const std::string &file_base)
 ~ModelBuffer ()
void Sink (util::stream::Chains &chains)
void Source (util::stream::Chains &chains)
std::size_t Order () const


Detailed Description

Definition at line 17 of file model_buffer.hh.


Constructor & Destructor Documentation

lm::common::ModelBuffer::ModelBuffer ( const std::string &  file_base,
bool  keep_buffer,
bool  output_q 
)

Definition at line 17 of file model_buffer.cc.

lm::common::ModelBuffer::ModelBuffer ( const std::string &  file_base  )  [explicit]

Definition at line 20 of file model_buffer.cc.

References util::FixedArray< T >::Init(), util::OpenReadOrThrow(), util::FixedArray< T >::push_back(), UTIL_THROW, and UTIL_THROW_IF2.

Here is the call graph for this function:

lm::common::ModelBuffer::~ModelBuffer (  ) 

Definition at line 49 of file model_buffer.cc.


Member Function Documentation

std::size_t lm::common::ModelBuffer::Order (  )  const

Definition at line 78 of file model_buffer.cc.

References util::FixedArray< T >::size().

Here is the call graph for this function:

void lm::common::ModelBuffer::Sink ( util::stream::Chains chains  ) 

Definition at line 51 of file model_buffer.cc.

References util::FixedArray< T >::back(), util::CreateOrThrow(), util::scoped_fd::get(), util::FixedArray< T >::Init(), util::MakeTemp(), util::FixedArray< T >::push_back(), and util::FixedArray< T >::size().

Referenced by lm::builder::Output::SinkProbs().

Here is the call graph for this function:

Here is the caller graph for this function:

void lm::common::ModelBuffer::Source ( util::stream::Chains chains  ) 

Definition at line 71 of file model_buffer.cc.

References util::FixedArray< T >::size().

Referenced by lm::builder::Output::SinkProbs().

Here is the call graph for this function:

Here is the caller graph for this function:


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

Generated on Thu Aug 27 00:32:40 2015 for Moses by  doxygen 1.5.9