lm::base::Model Class Reference

#include <virtual_interface.hh>

Inheritance diagram for lm::base::Model:

Inheritance graph
[legend]
Collaboration diagram for lm::base::Model:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~Model ()
size_t StateSize () const
const void * BeginSentenceMemory () const
void BeginSentenceWrite (void *to) const
const void * NullContextMemory () const
void NullContextWrite (void *to) const
virtual float BaseScore (const void *in_state, const WordIndex new_word, void *out_state) const =0
virtual FullScoreReturn BaseFullScore (const void *in_state, const WordIndex new_word, void *out_state) const =0
virtual FullScoreReturn BaseFullScoreForgotState (const WordIndex *context_rbegin, const WordIndex *context_rend, const WordIndex new_word, void *out_state) const =0
unsigned char Order () const
const VocabularyBaseVocabulary () const

Friends

class ModelFacade


Detailed Description

Definition at line 117 of file virtual_interface.hh.


Constructor & Destructor Documentation

Model::~Model (  )  [virtual]

Reimplemented in lm::np::Model.

Definition at line 16 of file virtual_interface.cc.


Member Function Documentation

virtual FullScoreReturn lm::base::Model::BaseFullScore ( const void *  in_state,
const WordIndex  new_word,
void *  out_state 
) const [pure virtual]

virtual FullScoreReturn lm::base::Model::BaseFullScoreForgotState ( const WordIndex context_rbegin,
const WordIndex context_rend,
const WordIndex  new_word,
void *  out_state 
) const [pure virtual]

virtual float lm::base::Model::BaseScore ( const void *  in_state,
const WordIndex  new_word,
void *  out_state 
) const [pure virtual]

const Vocabulary& lm::base::Model::BaseVocabulary (  )  const [inline]

Definition at line 138 of file virtual_interface.hh.

Referenced by lm::base::ModelFacade< Model, State, Vocabulary >::GetVocabulary().

Here is the caller graph for this function:

const void* lm::base::Model::BeginSentenceMemory (  )  const [inline]

Definition at line 122 of file virtual_interface.hh.

void lm::base::Model::BeginSentenceWrite ( void *  to  )  const [inline]

Definition at line 123 of file virtual_interface.hh.

References StateSize().

Here is the call graph for this function:

const void* lm::base::Model::NullContextMemory (  )  const [inline]

Definition at line 124 of file virtual_interface.hh.

void lm::base::Model::NullContextWrite ( void *  to  )  const [inline]

Definition at line 125 of file virtual_interface.hh.

References StateSize().

Here is the call graph for this function:

unsigned char lm::base::Model::Order (  )  const [inline]

size_t lm::base::Model::StateSize (  )  const [inline]

Definition at line 121 of file virtual_interface.hh.

Referenced by BeginSentenceWrite(), and NullContextWrite().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class ModelFacade [friend]

Definition at line 141 of file virtual_interface.hh.


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

Generated on Sun Jul 5 00:32:17 2015 for Moses by  doxygen 1.5.9