#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 19 of file ScoreStats.h.
| ScoreStats::ScoreStats | ( | ) |
Definition at line 20 of file ScoreStats.cpp.
| ScoreStats::ScoreStats | ( | const std::size_t | size | ) | [explicit] |
| ScoreStats::~ScoreStats | ( | ) |
| ScoreStats::ScoreStats | ( | const ScoreStats & | stats | ) |
Definition at line 47 of file ScoreStats.cpp.
References Copy().

| void ScoreStats::add | ( | ScoreStatsType | v | ) |
Definition at line 68 of file ScoreStats.cpp.
References expand(), and isfull().
Referenced by set(), and InterpolatedScorer::setScoreData().


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

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

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


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


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


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

| scorestats_t ScoreStats::getArray | ( | ) | const [inline] |
Definition at line 56 of file ScoreStats.h.
Referenced by Copy().

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

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

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


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

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

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