lm::ngram::trie::BitPackedMiddle< Bhiksha > Class Template Reference

#include <trie.hh>

Inheritance diagram for lm::ngram::trie::BitPackedMiddle< Bhiksha >:

Inheritance graph
[legend]
Collaboration diagram for lm::ngram::trie::BitPackedMiddle< Bhiksha >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BitPackedMiddle (void *base, uint8_t quant_bits, uint64_t entries, uint64_t max_vocab, uint64_t max_next, const BitPacked &next_source, const Config &config)
util::BitAddress Insert (WordIndex word)
void FinishedLoading (uint64_t next_end, const Config &config)
void LoadedBinary ()
util::BitAddress Find (WordIndex word, NodeRange &range, uint64_t &pointer) const
util::BitAddress ReadEntry (uint64_t pointer, NodeRange &range)

Static Public Member Functions

static uint64_t Size (uint8_t quant_bits, uint64_t entries, uint64_t max_vocab, uint64_t max_next, const Config &config)


Detailed Description

template<class Bhiksha>
class lm::ngram::trie::BitPackedMiddle< Bhiksha >

Definition at line 100 of file trie.hh.


Constructor & Destructor Documentation

template<class Bhiksha >
lm::ngram::trie::BitPackedMiddle< Bhiksha >::BitPackedMiddle ( void *  base,
uint8_t  quant_bits,
uint64_t  entries,
uint64_t  max_vocab,
uint64_t  max_next,
const BitPacked next_source,
const Config config 
) [inline]

Definition at line 64 of file trie.cc.

References lm::ngram::trie::BitPacked::BaseInit(), and UTIL_THROW.

Here is the call graph for this function:


Member Function Documentation

template<class Bhiksha >
util::BitAddress lm::ngram::trie::BitPackedMiddle< Bhiksha >::Find ( WordIndex  word,
NodeRange range,
uint64_t &  pointer 
) const [inline]

template<class Bhiksha >
void lm::ngram::trie::BitPackedMiddle< Bhiksha >::FinishedLoading ( uint64_t  next_end,
const Config config 
) [inline]

template<class Bhiksha >
util::BitAddress lm::ngram::trie::BitPackedMiddle< Bhiksha >::Insert ( WordIndex  word  )  [inline]

template<class Bhiksha >
void lm::ngram::trie::BitPackedMiddle< Bhiksha >::LoadedBinary (  )  [inline]

Definition at line 111 of file trie.hh.

template<class Bhiksha >
util::BitAddress lm::ngram::trie::BitPackedMiddle< Bhiksha >::ReadEntry ( uint64_t  pointer,
NodeRange range 
) [inline]

template<class Bhiksha >
uint64_t lm::ngram::trie::BitPackedMiddle< Bhiksha >::Size ( uint8_t  quant_bits,
uint64_t  entries,
uint64_t  max_vocab,
uint64_t  max_next,
const Config config 
) [inline, static]

Definition at line 60 of file trie.cc.

References lm::ngram::trie::BitPacked::BaseSize().

Referenced by lm::ngram::trie::TrieSearch< Quant, Bhiksha >::SetupMemory(), and lm::ngram::trie::TrieSearch< Quant, Bhiksha >::Size().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on Wed Oct 22 00:31:06 2014 for Moses by  doxygen 1.5.9