#include <ngram.hh>
Public Member Functions | |
NGram (void *begin, std::size_t order) | |
const uint8_t * | Base () const |
uint8_t * | Base () |
void | ReBase (void *to) |
void | NextInMemory () |
const WordIndex * | begin () const |
WordIndex * | begin () |
const WordIndex * | end () const |
WordIndex * | end () |
const Payload & | Value () const |
Payload & | Value () |
uint64_t & | Count () |
const uint64_t | Count () const |
std::size_t | Order () const |
std::size_t | TotalSize () const |
Static Public Member Functions | |
static std::size_t | TotalSize (std::size_t order) |
static std::size_t | OrderFromSize (std::size_t size) |
Definition at line 27 of file ngram.hh.
lm::builder::NGram::NGram | ( | void * | begin, | |
std::size_t | order | |||
) | [inline] |
const WordIndex* lm::builder::NGram::begin | ( | ) | const [inline] |
Definition at line 47 of file ngram.hh.
Referenced by lm::builder::AdjustCounts::Run().
const uint64_t lm::builder::NGram::Count | ( | ) | const [inline] |
Definition at line 56 of file ngram.hh.
References lm::builder::Payload::count, and Value().
uint64_t& lm::builder::NGram::Count | ( | ) | [inline] |
Definition at line 55 of file ngram.hh.
References lm::builder::Payload::count, and Value().
Referenced by lm::builder::AdjustCounts::Run().
const WordIndex* lm::builder::NGram::end | ( | ) | const [inline] |
Definition at line 49 of file ngram.hh.
Referenced by lm::builder::AdjustCounts::Run().
void lm::builder::NGram::NextInMemory | ( | ) | [inline] |
std::size_t lm::builder::NGram::Order | ( | ) | const [inline] |
Definition at line 58 of file ngram.hh.
Referenced by TotalSize().
static std::size_t lm::builder::NGram::OrderFromSize | ( | std::size_t | size | ) | [inline, static] |
Definition at line 67 of file ngram.hh.
References TotalSize().
Referenced by lm::builder::NGramStream::Init(), and lm::builder::CorpusCount::Run().
void lm::builder::NGram::ReBase | ( | void * | to | ) | [inline] |
Definition at line 35 of file ngram.hh.
Referenced by NextInMemory(), and lm::builder::NGramStream::operator++().
std::size_t lm::builder::NGram::TotalSize | ( | ) | const [inline] |
Definition at line 63 of file ngram.hh.
References Order().
Referenced by lm::builder::CorpusCount::DedupeMultiplier(), OrderFromSize(), and lm::builder::Pipeline().
static std::size_t lm::builder::NGram::TotalSize | ( | std::size_t | order | ) | [inline, static] |
const Payload& lm::builder::NGram::Value | ( | ) | const [inline] |
Definition at line 52 of file ngram.hh.
Referenced by Count(), and NextInMemory().