lm::np::Vocabulary Class Reference

#include <nplm.hh>

Inheritance diagram for lm::np::Vocabulary:

Inheritance graph
[legend]
Collaboration diagram for lm::np::Vocabulary:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Vocabulary (const nplm::vocabulary &vocab)
 ~Vocabulary ()
WordIndex Index (const std::string &str) const
WordIndex Index (const StringPiece &str) const
lm::WordIndex NullWord () const


Detailed Description

Definition at line 24 of file nplm.hh.


Constructor & Destructor Documentation

lm::np::Vocabulary::Vocabulary ( const nplm::vocabulary &  vocab  ) 

Definition at line 13 of file nplm.cc.

lm::np::Vocabulary::~Vocabulary (  )  [virtual]

Reimplemented from lm::base::Vocabulary.

Definition at line 17 of file nplm.cc.


Member Function Documentation

WordIndex lm::np::Vocabulary::Index ( const StringPiece str  )  const [inline, virtual]

Implements lm::base::Vocabulary.

Definition at line 33 of file nplm.hh.

References StringPiece::data(), Index(), and StringPiece::size().

Here is the call graph for this function:

WordIndex lm::np::Vocabulary::Index ( const std::string &  str  )  const [virtual]

Reimplemented from lm::base::Vocabulary.

Definition at line 19 of file nplm.cc.

Referenced by Index().

Here is the caller graph for this function:

lm::WordIndex lm::np::Vocabulary::NullWord (  )  const [inline]

Definition at line 37 of file nplm.hh.


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

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