Moses::TrellisPathCollection Class Reference

#include <TrellisPathCollection.h>

List of all members.

Public Member Functions

TrellisPathpop ()
 ~TrellisPathCollection ()
void Add (TrellisPath *trellisPath)
 add a new entry into collection
size_t GetSize () const
void Prune (size_t newSize)

Protected Types

typedef std::multiset
< TrellisPath
*, CompareTrellisPathCollection
CollectionType

Protected Attributes

CollectionType m_collection

Friends

std::ostream & operator<< (std::ostream &, const TrellisPathCollection &)


Detailed Description

priority queue used in Manager to store list of contenders for N-Best list. Stored in order of total score so that the best path can just be popped from the top Used by phrase-based decoding

Definition at line 42 of file TrellisPathCollection.h.


Member Typedef Documentation

Definition at line 47 of file TrellisPathCollection.h.


Constructor & Destructor Documentation

Moses::TrellisPathCollection::~TrellisPathCollection (  )  [inline]

Definition at line 60 of file TrellisPathCollection.h.

References m_collection, and Moses::RemoveAllInColl().

Here is the call graph for this function:


Member Function Documentation

void Moses::TrellisPathCollection::Add ( TrellisPath trellisPath  )  [inline]

add a new entry into collection

Definition at line 66 of file TrellisPathCollection.h.

References m_collection.

Referenced by Moses::Manager::CalcNBest(), and Moses::TrellisPath::CreateDeviantPaths().

Here is the caller graph for this function:

size_t Moses::TrellisPathCollection::GetSize (  )  const [inline]

Definition at line 70 of file TrellisPathCollection.h.

References m_collection.

Referenced by Moses::Manager::CalcNBest().

Here is the caller graph for this function:

TrellisPath* Moses::TrellisPathCollection::pop (  )  [inline]

Definition at line 52 of file TrellisPathCollection.h.

References m_collection.

Referenced by Moses::Manager::CalcNBest().

Here is the caller graph for this function:

void Moses::TrellisPathCollection::Prune ( size_t  newSize  ) 

Definition at line 6 of file TrellisPathCollection.cpp.

References m_collection.

Referenced by Moses::Manager::CalcNBest().

Here is the caller graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const TrellisPathCollection pathColl 
) [friend]

Definition at line 77 of file TrellisPathCollection.h.


Member Data Documentation


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

Generated on Thu Jul 6 00:33:57 2017 for Moses by  doxygen 1.5.9