#include <ScoreData.h>

| Public Member Functions | |
| ScoreData (Scorer *scorer) | |
| ~ScoreData () | |
| void | clear () | 
| ScoreArray & | get (std::size_t idx) | 
| const ScoreArray & | get (std::size_t idx) const | 
| bool | exists (int sent_idx) const | 
| bool | existsInternal (int sent_idx) const | 
| ScoreStats & | get (std::size_t i, std::size_t j) | 
| const ScoreStats & | get (std::size_t i, std::size_t j) const | 
| std::string | name () const | 
| std::string | name (const std::string &score_type) | 
| void | add (ScoreArray &e) | 
| void | add (const ScoreStats &e, int sent_idx) | 
| std::size_t | NumberOfScores () const | 
| std::size_t | size () const | 
| void | save (const std::string &file, bool bin=false) | 
| void | save (std::ostream *os, bool bin=false) | 
| void | save (bool bin=false) | 
| void | load (std::istream *is) | 
| void | load (const std::string &file) | 
| bool | check_consistency () const | 
| void | setIndex () | 
| int | getIndex (const int idx) const | 
| int | getName (std::size_t idx) const | 
Definition at line 26 of file ScoreData.h.
| MosesTuning::ScoreData::ScoreData | ( | Scorer * | scorer | ) | 
Definition at line 23 of file ScoreData.cpp.
References MosesTuning::Scorer::getName(), MosesTuning::Scorer::NumberOfScores(), and MosesTuning::Scorer::setScoreData().

| MosesTuning::ScoreData::~ScoreData | ( | ) |  [inline] | 
Definition at line 42 of file ScoreData.h.
| void MosesTuning::ScoreData::add | ( | const ScoreStats & | e, | |
| int | sent_idx | |||
| ) | 
Definition at line 99 of file ScoreData.cpp.
References MosesTuning::ScoreArray::add(), exists(), getIndex(), MosesTuning::ScoreArray::NumberOfScores(), and MosesTuning::ScoreArray::setIndex().

| void MosesTuning::ScoreData::add | ( | ScoreArray & | e | ) | 
Definition at line 87 of file ScoreData.cpp.
References exists(), getIndex(), MosesTuning::ScoreArray::getIndex(), and setIndex().
Referenced by MosesTuning::InterpolatedScorer::setScoreData().


| bool MosesTuning::ScoreData::check_consistency | ( | ) | const | 
Definition at line 121 of file ScoreData.cpp.
| void MosesTuning::ScoreData::clear | ( | ) |  [inline] | 
Definition at line 44 of file ScoreData.h.
| bool MosesTuning::ScoreData::exists | ( | int | sent_idx | ) | const  [inline] | 
Definition at line 56 of file ScoreData.h.
References existsInternal(), and getIndex().
Referenced by add().


| bool MosesTuning::ScoreData::existsInternal | ( | int | sent_idx | ) | const  [inline] | 
Definition at line 60 of file ScoreData.h.
Referenced by exists().

| const ScoreStats& MosesTuning::ScoreData::get | ( | std::size_t | i, | |
| std::size_t | j | |||
| ) | const  [inline] | 
Definition at line 68 of file ScoreData.h.
| ScoreStats& MosesTuning::ScoreData::get | ( | std::size_t | i, | |
| std::size_t | j | |||
| ) |  [inline] | 
Definition at line 64 of file ScoreData.h.
| const ScoreArray& MosesTuning::ScoreData::get | ( | std::size_t | idx | ) | const  [inline] | 
Definition at line 52 of file ScoreData.h.
| ScoreArray& MosesTuning::ScoreData::get | ( | std::size_t | idx | ) |  [inline] | 
Definition at line 48 of file ScoreData.h.
Referenced by MosesTuning::StatisticsBasedScorer::score(), MosesTuning::SentenceLevelScorer::score(), and MosesTuning::InterpolatedScorer::setScoreData().

| int MosesTuning::ScoreData::getIndex | ( | const int | idx | ) | const  [inline] | 
Definition at line 101 of file ScoreData.h.
Referenced by add(), and exists().

| int MosesTuning::ScoreData::getName | ( | std::size_t | idx | ) | const  [inline] | 
Definition at line 109 of file ScoreData.h.
| void MosesTuning::ScoreData::load | ( | const std::string & | file | ) | 
| void MosesTuning::ScoreData::load | ( | std::istream * | is | ) | 
| std::string MosesTuning::ScoreData::name | ( | const std::string & | score_type | ) |  [inline] | 
Definition at line 76 of file ScoreData.h.
| std::string MosesTuning::ScoreData::name | ( | ) | const  [inline] | 
Definition at line 72 of file ScoreData.h.
| std::size_t MosesTuning::ScoreData::NumberOfScores | ( | ) | const  [inline] | 
Definition at line 83 of file ScoreData.h.
Referenced by MosesTuning::InterpolatedScorer::setScoreData().

| void MosesTuning::ScoreData::save | ( | bool | bin = false | ) | 
Definition at line 53 of file ScoreData.cpp.
References save().

| void MosesTuning::ScoreData::save | ( | std::ostream * | os, | |
| bool | bin = false | |||
| ) | 
| void MosesTuning::ScoreData::save | ( | const std::string & | file, | |
| bool | bin = false | |||
| ) | 
| void MosesTuning::ScoreData::setIndex | ( | ) | 
Definition at line 132 of file ScoreData.cpp.
Referenced by add().

| std::size_t MosesTuning::ScoreData::size | ( | ) | const  [inline] | 
Definition at line 86 of file ScoreData.h.
Referenced by MosesTuning::Scorer::getReferenceSize(), MosesTuning::StatisticsBasedScorer::score(), MosesTuning::SentenceLevelScorer::score(), and MosesTuning::InterpolatedScorer::setScoreData().

 1.5.9
 1.5.9