Moses::AlignmentInfoCollection Class Reference

#include <AlignmentInfoCollection.h>

Collaboration diagram for Moses::AlignmentInfoCollection:

Collaboration graph
[legend]

List of all members.

Public Member Functions

template<typename ALNREP >
AlignmentInfo const * Add (ALNREP const &aln)
const AlignmentInfoGetEmptyAlignmentInfo () const
 Returns a pointer to an empty AlignmentInfo object.

Static Public Member Functions

static AlignmentInfoCollectionInstance ()


Detailed Description

Singleton collection of all AlignmentInfo objects. Used as a cache of all alignment info to save space.

Definition at line 37 of file AlignmentInfoCollection.h.


Member Function Documentation

template<typename ALNREP >
AlignmentInfo const* Moses::AlignmentInfoCollection::Add ( ALNREP const &  aln  )  [inline]

Definition at line 55 of file AlignmentInfoCollection.h.

const AlignmentInfo & Moses::AlignmentInfoCollection::GetEmptyAlignmentInfo (  )  const

Returns a pointer to an empty AlignmentInfo object.

Definition at line 36 of file AlignmentInfoCollection.cpp.

static AlignmentInfoCollection& Moses::AlignmentInfoCollection::Instance (  )  [inline, static]

Definition at line 40 of file AlignmentInfoCollection.h.

Referenced by Moses::ProbingPT::CreateAlignmentMap(), Moses::TargetPhrase::SetAlignNonTerm(), and Moses::TargetPhrase::SetAlignTerm().

Here is the caller graph for this function:


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

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