#include <bhiksha.hh>
Public Member Functions | |
DontBhiksha (const void *base, uint64_t max_offset, uint64_t max_next, const Config &config) | |
void | ReadNext (const void *base, uint64_t bit_offset, uint64_t, uint8_t total_bits, NodeRange &out) const |
void | WriteNext (void *base, uint64_t bit_offset, uint64_t, uint64_t value) |
void | FinishedLoading (const Config &) |
uint8_t | InlineBits () const |
Static Public Member Functions | |
static void | UpdateConfigFromBinary (const BinaryFormat &, uint64_t, Config &) |
static uint64_t | Size (uint64_t, uint64_t, const Config &) |
static uint8_t | InlineBits (uint64_t, uint64_t max_next, const Config &) |
Static Public Attributes | |
static const ModelType | kModelTypeAdd = static_cast<ModelType>(0) |
Definition at line 32 of file bhiksha.hh.
lm::ngram::trie::DontBhiksha::DontBhiksha | ( | const void * | base, | |
uint64_t | max_offset, | |||
uint64_t | max_next, | |||
const Config & | config | |||
) |
Definition at line 14 of file bhiksha.cc.
void lm::ngram::trie::DontBhiksha::FinishedLoading | ( | const Config & | ) | [inline] |
Definition at line 56 of file bhiksha.hh.
uint8_t lm::ngram::trie::DontBhiksha::InlineBits | ( | ) | const [inline] |
static uint8_t lm::ngram::trie::DontBhiksha::InlineBits | ( | uint64_t | , | |
uint64_t | max_next, | |||
const Config & | ||||
) | [inline, static] |
Definition at line 40 of file bhiksha.hh.
References util::RequiredBits().
void lm::ngram::trie::DontBhiksha::ReadNext | ( | const void * | base, | |
uint64_t | bit_offset, | |||
uint64_t | , | |||
uint8_t | total_bits, | |||
NodeRange & | out | |||
) | const [inline] |
Definition at line 46 of file bhiksha.hh.
References lm::ngram::trie::NodeRange::begin, util::BitsMask::bits, lm::ngram::trie::NodeRange::end, util::BitsMask::mask, and util::ReadInt57().
static uint64_t lm::ngram::trie::DontBhiksha::Size | ( | uint64_t | , | |
uint64_t | , | |||
const Config & | ||||
) | [inline, static] |
Definition at line 38 of file bhiksha.hh.
static void lm::ngram::trie::DontBhiksha::UpdateConfigFromBinary | ( | const BinaryFormat & | , | |
uint64_t | , | |||
Config & | ||||
) | [inline, static] |
Definition at line 36 of file bhiksha.hh.
void lm::ngram::trie::DontBhiksha::WriteNext | ( | void * | base, | |
uint64_t | bit_offset, | |||
uint64_t | , | |||
uint64_t | value | |||
) | [inline] |
Definition at line 52 of file bhiksha.hh.
References util::BitsMask::bits, and util::WriteInt57().
const ModelType lm::ngram::trie::DontBhiksha::kModelTypeAdd = static_cast<ModelType>(0) [static] |
Definition at line 34 of file bhiksha.hh.