Moses::GenericCandidate Class Reference

#include <PrefixTreeMap.h>

List of all members.

Public Types

typedef std::vector< IPhrasePhraseList
typedef std::vector
< std::vector< float > > 
ScoreList

Public Member Functions

 GenericCandidate ()
 GenericCandidate (const GenericCandidate &other)
 GenericCandidate (const PhraseList &p, const ScoreList &s)
 ~GenericCandidate ()
size_t NumPhrases () const
size_t NumScores () const
const IPhraseGetPhrase (unsigned int i) const
const std::vector< float > & GetScore (unsigned int i) const
void readBin (FILE *f)
void writeBin (FILE *f) const


Detailed Description

Todo:
How is this used in the pb binary phrase table?

Definition at line 26 of file PrefixTreeMap.h.


Member Typedef Documentation

Definition at line 29 of file PrefixTreeMap.h.

typedef std::vector< std::vector<float> > Moses::GenericCandidate::ScoreList

Definition at line 30 of file PrefixTreeMap.h.


Constructor & Destructor Documentation

Moses::GenericCandidate::GenericCandidate (  )  [inline]

Definition at line 32 of file PrefixTreeMap.h.

Moses::GenericCandidate::GenericCandidate ( const GenericCandidate other  )  [inline]

Definition at line 34 of file PrefixTreeMap.h.

Moses::GenericCandidate::GenericCandidate ( const PhraseList p,
const ScoreList s 
) [inline]

Definition at line 37 of file PrefixTreeMap.h.

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

Definition at line 40 of file PrefixTreeMap.h.


Member Function Documentation

const IPhrase& Moses::GenericCandidate::GetPhrase ( unsigned int  i  )  const [inline]

Definition at line 49 of file PrefixTreeMap.h.

const std::vector<float>& Moses::GenericCandidate::GetScore ( unsigned int  i  )  const [inline]

Definition at line 52 of file PrefixTreeMap.h.

size_t Moses::GenericCandidate::NumPhrases (  )  const [inline]

Definition at line 43 of file PrefixTreeMap.h.

size_t Moses::GenericCandidate::NumScores (  )  const [inline]

Definition at line 46 of file PrefixTreeMap.h.

void Moses::GenericCandidate::readBin ( FILE *  f  ) 

Definition at line 12 of file PrefixTreeMap.cpp.

References Moses::fRead(), and Moses::fReadVector().

Here is the call graph for this function:

void Moses::GenericCandidate::writeBin ( FILE *  f  )  const

Definition at line 32 of file PrefixTreeMap.cpp.

References Moses::fWrite(), and Moses::fWriteVector().

Here is the call graph for this function:


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

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