#include <arpa_io.hh>

Public Member Functions | |
| ARPAOutput (const char *name, size_t buffer_size=65536) | |
| void | ReserveForCounts (std::streampos reserve) |
| void | BeginLength (unsigned int length) |
| void | AddNGram (const StringPiece &line) |
| void | AddNGram (const StringPiece &ngram, const StringPiece &line) |
| template<class Iterator > | |
| void | AddNGram (const Iterator &begin, const Iterator &end, const StringPiece &line) |
| void | EndLength (unsigned int length) |
| void | Finish () |
Definition at line 39 of file arpa_io.hh.
| lm::ARPAOutput::ARPAOutput | ( | const char * | name, | |
| size_t | buffer_size = 65536 | |||
| ) | [explicit] |
Definition at line 48 of file arpa_io.cc.
| void lm::ARPAOutput::AddNGram | ( | const Iterator & | begin, | |
| const Iterator & | end, | |||
| const StringPiece & | line | |||
| ) | [inline] |
Definition at line 56 of file arpa_io.hh.
References AddNGram().

| void lm::ARPAOutput::AddNGram | ( | const StringPiece & | ngram, | |
| const StringPiece & | line | |||
| ) | [inline] |
Definition at line 52 of file arpa_io.hh.
References AddNGram().

| void lm::ARPAOutput::AddNGram | ( | const StringPiece & | line | ) | [inline] |
Definition at line 47 of file arpa_io.hh.
Referenced by AddNGram().

| void lm::ARPAOutput::BeginLength | ( | unsigned int | length | ) |
Definition at line 57 of file arpa_io.cc.
| void lm::ARPAOutput::EndLength | ( | unsigned int | length | ) |
Definition at line 61 of file arpa_io.cc.
| void lm::ARPAOutput::Finish | ( | ) |
Definition at line 69 of file arpa_io.cc.
References util::FileStream::flush(), util::FileStream::seekp(), and lm::WriteCounts().

| void lm::ARPAOutput::ReserveForCounts | ( | std::streampos | reserve | ) |
Definition at line 51 of file arpa_io.cc.
1.5.9