lm::NGram< PayloadT > Class Template Reference

#include <ngram.hh>

Inheritance diagram for lm::NGram< PayloadT >:

Inheritance graph
[legend]
Collaboration diagram for lm::NGram< PayloadT >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef PayloadT Payload

Public Member Functions

 NGram ()
 NGram (void *begin, std::size_t order)
void NextInMemory ()
std::size_t TotalSize () const
const PayloadValue () const
PayloadValue ()

Static Public Member Functions

static std::size_t TotalSize (std::size_t order)
static std::size_t OrderFromSize (std::size_t size)


Detailed Description

template<class PayloadT>
class lm::NGram< PayloadT >

Definition at line 44 of file ngram.hh.


Member Typedef Documentation

template<class PayloadT>
typedef PayloadT lm::NGram< PayloadT >::Payload

Definition at line 46 of file ngram.hh.


Constructor & Destructor Documentation

template<class PayloadT>
lm::NGram< PayloadT >::NGram (  )  [inline]

Definition at line 48 of file ngram.hh.

template<class PayloadT>
lm::NGram< PayloadT >::NGram ( void *  begin,
std::size_t  order 
) [inline]

Definition at line 50 of file ngram.hh.


Member Function Documentation

template<class PayloadT>
void lm::NGram< PayloadT >::NextInMemory (  )  [inline]

Definition at line 53 of file ngram.hh.

template<class PayloadT>
static std::size_t lm::NGram< PayloadT >::OrderFromSize ( std::size_t  size  )  [inline, static]

Definition at line 65 of file ngram.hh.

template<class PayloadT>
std::size_t lm::NGram< PayloadT >::TotalSize (  )  const [inline]

Definition at line 60 of file ngram.hh.

Referenced by lm::NGram< Payload >::OrderFromSize(), and lm::NGram< Payload >::TotalSize().

Here is the caller graph for this function:

template<class PayloadT>
static std::size_t lm::NGram< PayloadT >::TotalSize ( std::size_t  order  )  [inline, static]

Definition at line 57 of file ngram.hh.

template<class PayloadT>
Payload& lm::NGram< PayloadT >::Value (  )  [inline]

Definition at line 72 of file ngram.hh.

template<class PayloadT>
const Payload& lm::NGram< PayloadT >::Value (  )  const [inline]

Definition at line 71 of file ngram.hh.

Referenced by lm::NGram< Payload >::NextInMemory(), and lm::builder::AdjustCounts::Run().

Here is the caller graph for this function:


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

Generated on Thu Jul 6 00:32:40 2017 for Moses by  doxygen 1.5.9