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 19 of file ScoreStats.h.


Constructor & Destructor Documentation

ScoreStats::ScoreStats (  ) 

Definition at line 20 of file ScoreStats.cpp.

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

ScoreStats::~ScoreStats (  ) 

Definition at line 31 of file ScoreStats.cpp.

References NULL.

ScoreStats::ScoreStats ( const ScoreStats stats  ) 

Definition at line 47 of file ScoreStats.cpp.

References Copy().

Here is the call graph for this function:


Member Function Documentation

void ScoreStats::add ( ScoreStatsType  v  ) 

Definition at line 68 of file ScoreStats.cpp.

References expand(), and isfull().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 76 of file ScoreStats.h.

Referenced by Copy().

Here is the caller graph for this function:

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

Definition at line 68 of file ScoreStats.h.

References GetArraySizeWithBytes().

Here is the call graph for this function:

void ScoreStats::clear (  )  [inline]

Definition at line 45 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 ScoreStats::Copy ( const ScoreStats stats  ) 

Definition at line 39 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 ScoreStats::expand (  ) 

Definition at line 59 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 ScoreStats::get ( std::size_t  i  )  const [inline]

Definition at line 55 of file ScoreStats.h.

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

Definition at line 54 of file ScoreStats.h.

Referenced by BOOST_AUTO_TEST_CASE(), operator<<(), operator==(), StatisticsBasedScorer::score(), SentenceLevelScorer::score(), and InterpolatedScorer::setScoreData().

Here is the caller graph for this function:

scorestats_t ScoreStats::getArray (  )  const [inline]

Definition at line 56 of file ScoreStats.h.

Referenced by Copy().

Here is the caller graph for this function:

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

Definition at line 70 of file ScoreStats.h.

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

Here is the caller graph for this function:

bool ScoreStats::isfull (  )  const [inline]

Definition at line 40 of file ScoreStats.h.

Referenced by add().

Here is the caller graph for this function:

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

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

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

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

Definition at line 52 of file ScoreStats.cpp.

References Copy().

Here is the call graph for this function:

void ScoreStats::reset (  )  [inline]

Definition at line 49 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 ScoreStats::savebin ( std::ostream *  os  ) 

void ScoreStats::savetxt (  ) 

Definition at line 122 of file ScoreStats.cpp.

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

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

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

Definition at line 61 of file ScoreStats.h.

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

Here is the call graph for this function:

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

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

Definition at line 74 of file ScoreStats.h.

Referenced by BOOST_AUTO_TEST_CASE(), Copy(), operator<<(), operator==(), StatisticsBasedScorer::score(), SentenceLevelScorer::score(), and set().

Here is the caller graph for this function:


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 Sat Jun 30 00:30:12 2012 for Moses by  doxygen 1.5.9