#include <trie_sort.hh>
Public Member Functions | |
RecordReader () | |
void | Init (FILE *file, std::size_t entry_size) |
void * | Data () |
const void * | Data () const |
RecordReader & | operator++ () |
operator bool () const | |
void | Rewind () |
std::size_t | EntrySize () const |
void | Overwrite (const void *start, std::size_t amount) |
Definition at line 49 of file trie_sort.hh.
lm::ngram::trie::RecordReader::RecordReader | ( | ) | [inline] |
Definition at line 51 of file trie_sort.hh.
const void* lm::ngram::trie::RecordReader::Data | ( | ) | const [inline] |
Definition at line 56 of file trie_sort.hh.
References util::scoped_base< T, Closer >::get().
void* lm::ngram::trie::RecordReader::Data | ( | ) | [inline] |
Definition at line 55 of file trie_sort.hh.
References util::scoped_base< T, Closer >::get().
Referenced by lm::ngram::trie::BuildTrie().
std::size_t lm::ngram::trie::RecordReader::EntrySize | ( | ) | const [inline] |
Definition at line 71 of file trie_sort.hh.
void lm::ngram::trie::RecordReader::Init | ( | FILE * | file, | |
std::size_t | entry_size | |||
) |
Definition at line 155 of file trie_sort.cc.
References util::scoped_base< T, Closer >::get(), util::scoped_base< T, Closer >::reset(), and UTIL_THROW_IF.
Referenced by lm::ngram::trie::BuildTrie().
lm::ngram::trie::RecordReader::operator bool | ( | ) | const [inline] |
Definition at line 67 of file trie_sort.hh.
RecordReader& lm::ngram::trie::RecordReader::operator++ | ( | ) | [inline] |
Definition at line 58 of file trie_sort.hh.
References util::scoped_base< T, Closer >::get(), and UTIL_THROW_IF.
void lm::ngram::trie::RecordReader::Overwrite | ( | const void * | start, | |
std::size_t | amount | |||
) |
Definition at line 169 of file trie_sort.cc.
References fseek(), util::scoped_base< T, Closer >::get(), UTIL_THROW_IF, and util::WriteOrThrow().
void lm::ngram::trie::RecordReader::Rewind | ( | ) |
Definition at line 180 of file trie_sort.cc.
Referenced by lm::ngram::trie::BuildTrie().