lm::builder::NGram Class Reference

#include <ngram.hh>

List of all members.

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 WordIndexbegin () const
WordIndexbegin ()
const WordIndexend () const
WordIndexend ()
const PayloadValue () const
PayloadValue ()
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)


Detailed Description

Definition at line 27 of file ngram.hh.


Constructor & Destructor Documentation

lm::builder::NGram::NGram ( void *  begin,
std::size_t  order 
) [inline]

Definition at line 29 of file ngram.hh.


Member Function Documentation

uint8_t* lm::builder::NGram::Base (  )  [inline]

Definition at line 33 of file ngram.hh.

const uint8_t* lm::builder::NGram::Base (  )  const [inline]

Definition at line 32 of file ngram.hh.

WordIndex* lm::builder::NGram::begin (  )  [inline]

Definition at line 48 of file ngram.hh.

const WordIndex* lm::builder::NGram::begin (  )  const [inline]

Definition at line 47 of file ngram.hh.

Referenced by lm::builder::AdjustCounts::Run().

Here is the caller graph for this function:

const uint64_t lm::builder::NGram::Count (  )  const [inline]

Definition at line 56 of file ngram.hh.

References lm::builder::Payload::count, and Value().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

WordIndex* lm::builder::NGram::end (  )  [inline]

Definition at line 50 of file ngram.hh.

const WordIndex* lm::builder::NGram::end (  )  const [inline]

Definition at line 49 of file ngram.hh.

Referenced by lm::builder::AdjustCounts::Run().

Here is the caller graph for this function:

void lm::builder::NGram::NextInMemory (  )  [inline]

Definition at line 42 of file ngram.hh.

References ReBase(), and Value().

Here is the call graph for this function:

std::size_t lm::builder::NGram::Order (  )  const [inline]

Definition at line 58 of file ngram.hh.

Referenced by TotalSize().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void lm::builder::NGram::ReBase ( void *  to  )  [inline]

Definition at line 35 of file ngram.hh.

Referenced by NextInMemory(), and lm::builder::NGramStream::operator++().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static std::size_t lm::builder::NGram::TotalSize ( std::size_t  order  )  [inline, static]

Definition at line 60 of file ngram.hh.

Payload& lm::builder::NGram::Value (  )  [inline]

Definition at line 53 of file ngram.hh.

const Payload& lm::builder::NGram::Value (  )  const [inline]

Definition at line 52 of file ngram.hh.

Referenced by Count(), and NextInMemory().

Here is the caller graph for this function:


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

Generated on Thu Jun 4 00:31:46 2015 for Moses by  doxygen 1.5.9