Moses::osmState Class Reference

#include <osmHyp.h>

Inheritance diagram for Moses::osmState:

Inheritance graph
Collaboration diagram for Moses::osmState:

Collaboration graph

List of all members.

Public Member Functions

 osmState (const lm::ngram::State &val)
virtual size_t hash () const
virtual bool operator== (const FFState &other) const
void saveState (int jVal, int eVal, std::map< int, std::string > &gapVal)
int getJ () const
int getE () const
std::map< int, std::string > getGap () const
lm::ngram::State getLMState () const
void print () const
std::string getName () const

Protected Attributes

int j
int E
std::map< int, std::string > gap
lm::ngram::State lmState

Detailed Description

Definition at line 15 of file osmHyp.h.

Constructor & Destructor Documentation

Moses::osmState::osmState ( const lm::ngram::State val  ) 

Member Function Documentation

int Moses::osmState::getE (  )  const [inline]

Definition at line 26 of file osmHyp.h.

References E.

std::map<int , std::string> Moses::osmState::getGap (  )  const [inline]

Definition at line 29 of file osmHyp.h.

int Moses::osmState::getJ (  )  const [inline]

Definition at line 23 of file osmHyp.h.

References j.

lm::ngram::State Moses::osmState::getLMState (  )  const [inline]

Definition at line 33 of file osmHyp.h.

References lmState.

std::string Moses::osmState::getName (  )  const

Definition at line 51 of file osmHyp.cpp.

size_t Moses::osmState::hash (  )  const [virtual]

Implements Moses::FFState.

Definition at line 25 of file osmHyp.cpp.

References E, j, lm::ngram::State::length, and lmState.

bool Moses::osmState::operator== ( const FFState other  )  const [virtual]

Implements Moses::FFState.

Definition at line 36 of file osmHyp.cpp.

References E, gap, j, lm::ngram::State::length, and lmState.

void Moses::osmState::print (  )  const

void Moses::osmState::saveState ( int  jVal,
int  eVal,
std::map< int, std::string > &  gapVal 

Referenced by Moses::osmHypothesis::saveState().

Here is the caller graph for this function:

Member Data Documentation

int Moses::osmState::E [protected]

Definition at line 41 of file osmHyp.h.

Referenced by getE(), hash(), and operator==().

std::map<int,std::string> Moses::osmState::gap [protected]

Definition at line 42 of file osmHyp.h.

Referenced by operator==().

int Moses::osmState::j [protected]

Definition at line 41 of file osmHyp.h.

Referenced by getJ(), hash(), and operator==().

Definition at line 43 of file osmHyp.h.

Referenced by getLMState(), hash(), and operator==().

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

Generated on Thu Jul 6 00:33:08 2017 for Moses by  doxygen 1.5.9