MosesTuning::ScoreStats Class Reference

#include <ScoreStats.h>

List of all members.

Public Member Functions

 ScoreStats ()
 ScoreStats (const std::size_t size)
 ~ScoreStats ()
 ScoreStats (const ScoreStats &stats)
ScoreStatsoperator= (const ScoreStats &stats)
void Copy (const ScoreStats &stats)
bool isfull () const
void expand ()
void add (ScoreStatsType v)
void clear ()
void reset ()
ScoreStatsType get (std::size_t i)
ScoreStatsType get (std::size_t i) const
scorestats_t getArray () const
void set (const std::string &str)
void set (const std::vector< ScoreStatsType > &stats)
std::size_t bytes () const
std::size_t GetArraySizeWithBytes () const
std::size_t size () const
std::size_t available () const
void savetxt (const std::string &file)
void savetxt (std::ostream *os)
void savebin (std::ostream *os)
void savetxt ()
void loadtxt (const std::string &file)
void loadtxt (std::istream *is)
void loadbin (std::istream *is)

Friends

std::ostream & operator<< (std::ostream &o, const ScoreStats &e)


Detailed Description

Definition at line 23 of file ScoreStats.h.


Constructor & Destructor Documentation

MosesTuning::ScoreStats::ScoreStats (  ) 

Definition at line 25 of file ScoreStats.cpp.

MosesTuning::ScoreStats::ScoreStats ( const std::size_t  size  )  [explicit]

MosesTuning::ScoreStats::~ScoreStats (  ) 

Definition at line 36 of file ScoreStats.cpp.

References NULL.

MosesTuning::ScoreStats::ScoreStats ( const ScoreStats stats  ) 

Definition at line 50 of file ScoreStats.cpp.

References Copy().

Here is the call graph for this function:


Member Function Documentation

void MosesTuning::ScoreStats::add ( ScoreStatsType  v  ) 

Definition at line 71 of file ScoreStats.cpp.

References expand(), and isfull().

Referenced by set(), and MosesTuning::InterpolatedScorer::setScoreData().

Here is the call graph for this function:

Here is the caller graph for this function:

std::size_t MosesTuning::ScoreStats::available (  )  const [inline]

Definition at line 92 of file ScoreStats.h.

Referenced by Copy().

Here is the caller graph for this function:

std::size_t MosesTuning::ScoreStats::bytes (  )  const [inline]

Definition at line 80 of file ScoreStats.h.

References GetArraySizeWithBytes().

Here is the call graph for this function:

void MosesTuning::ScoreStats::clear (  )  [inline]

Definition at line 51 of file ScoreStats.h.

References GetArraySizeWithBytes().

Referenced by reset().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTuning::ScoreStats::Copy ( const ScoreStats stats  ) 

Definition at line 42 of file ScoreStats.cpp.

References available(), getArray(), GetArraySizeWithBytes(), and size().

Referenced by operator=(), and ScoreStats().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTuning::ScoreStats::expand (  ) 

Definition at line 62 of file ScoreStats.cpp.

References GetArraySizeWithBytes().

Referenced by add().

Here is the call graph for this function:

Here is the caller graph for this function:

ScoreStatsType MosesTuning::ScoreStats::get ( std::size_t  i  )  const [inline]

Definition at line 63 of file ScoreStats.h.

ScoreStatsType MosesTuning::ScoreStats::get ( std::size_t  i  )  [inline]

scorestats_t MosesTuning::ScoreStats::getArray (  )  const [inline]

Definition at line 66 of file ScoreStats.h.

Referenced by Copy(), and main().

Here is the caller graph for this function:

std::size_t MosesTuning::ScoreStats::GetArraySizeWithBytes (  )  const [inline]

Definition at line 84 of file ScoreStats.h.

Referenced by bytes(), clear(), Copy(), and expand().

Here is the caller graph for this function:

bool MosesTuning::ScoreStats::isfull (  )  const [inline]

Definition at line 44 of file ScoreStats.h.

Referenced by add().

Here is the caller graph for this function:

void MosesTuning::ScoreStats::loadbin ( std::istream *  is  ) 

void MosesTuning::ScoreStats::loadtxt ( std::istream *  is  ) 

void MosesTuning::ScoreStats::loadtxt ( const std::string &  file  ) 

ScoreStats & MosesTuning::ScoreStats::operator= ( const ScoreStats stats  ) 

Definition at line 55 of file ScoreStats.cpp.

References Copy().

Here is the call graph for this function:

void MosesTuning::ScoreStats::reset (  )  [inline]

Definition at line 55 of file ScoreStats.h.

References clear().

Referenced by set().

Here is the call graph for this function:

Here is the caller graph for this function:

void MosesTuning::ScoreStats::savebin ( std::ostream *  os  ) 

void MosesTuning::ScoreStats::savetxt (  ) 

Definition at line 125 of file ScoreStats.cpp.

void MosesTuning::ScoreStats::savetxt ( std::ostream *  os  ) 

void MosesTuning::ScoreStats::savetxt ( const std::string &  file  ) 

void MosesTuning::ScoreStats::set ( const std::vector< ScoreStatsType > &  stats  )  [inline]

Definition at line 73 of file ScoreStats.h.

References add(), reset(), and size().

Here is the call graph for this function:

void MosesTuning::ScoreStats::set ( const std::string &  str  ) 

Referenced by MosesTuning::BleuScorer::CalcBleuStats().

Here is the caller graph for this function:

std::size_t MosesTuning::ScoreStats::size (  )  const [inline]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const ScoreStats e 
) [friend]

Write the whole object to a stream.


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

Generated on Thu Jul 6 00:34:20 2017 for Moses by  doxygen 1.5.9