Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
lm::base::Vocabulary Class Reference

#include <virtual_interface.hh>

Inheritance diagram for lm::base::Vocabulary:
[legend]

List of all members.

Public Member Functions

virtual ~Vocabulary ()
WordIndex BeginSentence () const
WordIndex EndSentence () const
WordIndex NotFound () const
virtual WordIndex Index (const StringPiece &str) const =0
virtual WordIndex Index (const std::string &str) const
virtual WordIndex Index (const char *str) const

Protected Member Functions

 Vocabulary ()
 Vocabulary (WordIndex begin_sentence, WordIndex end_sentence, WordIndex not_found)
void SetSpecial (WordIndex begin_sentence, WordIndex end_sentence, WordIndex not_found)

Protected Attributes

WordIndex begin_sentence_
WordIndex end_sentence_
WordIndex not_found_

Private Member Functions

 Vocabulary (const Vocabulary &)
Vocabularyoperator= (const Vocabulary &)

Constructor & Destructor Documentation

Reimplemented in lm::sri::Vocabulary.

Reimplemented in lm::sri::Vocabulary.

lm::base::Vocabulary::Vocabulary ( WordIndex  begin_sentence,
WordIndex  end_sentence,
WordIndex  not_found 
) [protected]

Here is the call graph for this function:


Member Function Documentation

virtual WordIndex lm::base::Vocabulary::Index ( const StringPiece str) const [pure virtual]

Implemented in lm::ngram::ProbingVocabulary, lm::sri::Vocabulary, and lm::ngram::SortedVocabulary.

Here is the caller graph for this function:

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

Reimplemented in lm::sri::Vocabulary.

Here is the call graph for this function:

virtual WordIndex lm::base::Vocabulary::Index ( const char *  str) const [virtual]

Reimplemented in lm::sri::Vocabulary.

Here is the call graph for this function:

Vocabulary& lm::base::Vocabulary::operator= ( const Vocabulary ) [private]
void lm::base::Vocabulary::SetSpecial ( WordIndex  begin_sentence,
WordIndex  end_sentence,
WordIndex  not_found 
) [protected]

Here is the caller graph for this function:


Member Data Documentation