#include <ScoreStats.h>
Public Member Functions | |
| ScoreStats () | |
| ScoreStats (const std::size_t size) | |
| ~ScoreStats () | |
| ScoreStats (const ScoreStats &stats) | |
| ScoreStats & | operator= (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) |
Definition at line 23 of file ScoreStats.h.
| MosesTuning::ScoreStats::ScoreStats | ( | ) |
Definition at line 25 of file ScoreStats.cpp.
| MosesTuning::ScoreStats::ScoreStats | ( | const std::size_t | size | ) | [explicit] |
| MosesTuning::ScoreStats::~ScoreStats | ( | ) |
| MosesTuning::ScoreStats::ScoreStats | ( | const ScoreStats & | stats | ) |
Definition at line 50 of file ScoreStats.cpp.
References Copy().

| 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().


| std::size_t MosesTuning::ScoreStats::available | ( | ) | const [inline] |
Definition at line 92 of file ScoreStats.h.
Referenced by Copy().

| std::size_t MosesTuning::ScoreStats::bytes | ( | ) | const [inline] |
Definition at line 80 of file ScoreStats.h.
References GetArraySizeWithBytes().

| void MosesTuning::ScoreStats::clear | ( | ) | [inline] |
Definition at line 51 of file ScoreStats.h.
References GetArraySizeWithBytes().
Referenced by reset().


| 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().


| void MosesTuning::ScoreStats::expand | ( | ) |
Definition at line 62 of file ScoreStats.cpp.
References GetArraySizeWithBytes().
Referenced by add().


| 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] |
Definition at line 60 of file ScoreStats.h.
Referenced by BOOST_AUTO_TEST_CASE(), MosesTuning::operator<<(), MosesTuning::operator==(), MosesTuning::StatisticsBasedScorer::score(), MosesTuning::SentenceLevelScorer::score(), and MosesTuning::InterpolatedScorer::setScoreData().

| scorestats_t MosesTuning::ScoreStats::getArray | ( | ) | const [inline] |
Definition at line 66 of file ScoreStats.h.
Referenced by Copy(), and main().

| std::size_t MosesTuning::ScoreStats::GetArraySizeWithBytes | ( | ) | const [inline] |
| bool MosesTuning::ScoreStats::isfull | ( | ) | const [inline] |
Definition at line 44 of file ScoreStats.h.
Referenced by add().

| 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().

| void MosesTuning::ScoreStats::reset | ( | ) | [inline] |
Definition at line 55 of file ScoreStats.h.
References clear().
Referenced by set().


| 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().

| void MosesTuning::ScoreStats::set | ( | const std::string & | str | ) |
| std::size_t MosesTuning::ScoreStats::size | ( | ) | const [inline] |
Definition at line 88 of file ScoreStats.h.
Referenced by BOOST_AUTO_TEST_CASE(), Copy(), main(), MosesTuning::operator<<(), MosesTuning::operator==(), MosesTuning::StatisticsBasedScorer::score(), MosesTuning::SentenceLevelScorer::score(), and set().

| std::ostream& operator<< | ( | std::ostream & | o, | |
| const ScoreStats & | e | |||
| ) | [friend] |
Write the whole object to a stream.
1.5.9