Moses::ScorePair Struct Reference

#include <ScoreComponentCollection.h>

List of all members.

Public Member Functions

 ScorePair ()
 ScorePair (const std::vector< float > &other)
void PlusEquals (const ScorePair &other)
void PlusEquals (const StringPiece &key, float value)
void PlusEquals (const std::vector< float > &other)

Public Attributes

std::vector< float > denseScores
std::map< StringPiece, float > sparseScores


std::ostream & operator<< (std::ostream &os, const ScorePair &rhs)

Detailed Description

Smaller version for just 1 FF.

Definition at line 44 of file ScoreComponentCollection.h.

Constructor & Destructor Documentation

Moses::ScorePair::ScorePair (  )  [inline]

Definition at line 50 of file ScoreComponentCollection.h.

Moses::ScorePair::ScorePair ( const std::vector< float > &  other  )  [inline]

Definition at line 52 of file ScoreComponentCollection.h.

Member Function Documentation

void Moses::ScorePair::PlusEquals ( const std::vector< float > &  other  )  [inline]

Definition at line 59 of file ScoreComponentCollection.h.

References denseScores, and UTIL_THROW_IF2.

void Moses::ScorePair::PlusEquals ( const StringPiece key,
float  value 

Definition at line 27 of file ScoreComponentCollection.cpp.

References sparseScores.

void Moses::ScorePair::PlusEquals ( const ScorePair other  ) 

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ScorePair rhs 
) [friend]

Definition at line 39 of file ScoreComponentCollection.cpp.

Member Data Documentation

std::vector<float> Moses::ScorePair::denseScores

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

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