#include <Factor.h>

Public Member Functions | |
| const std::string & | GetString () const |
| original string representation of the factor | |
| size_t | GetId () const |
| contiguous ID | |
| int | Compare (const Factor &compare) const |
| bool | operator< (const Factor &compare) const |
| transitive comparison used for adding objects into FactorCollection | |
| bool | operator== (const Factor &compare) const |
| TO_STRING () | |
Friends | |
| class | FactorCollection |
| class | FactorFriend |
| std::ostream & | operator<< (std::ostream &, const Factor &) |
A Factor has a contiguous identifier and string value.
Definition at line 40 of file Factor.h.
| int Moses::Factor::Compare | ( | const Factor & | compare | ) | const [inline] |
transitive comparison between 2 factors. -1 = less than +1 = more than 0 = same
Definition at line 76 of file Factor.h.
Referenced by Moses::TerminalEqualityPred::operator()(), Moses::NonTerminalMapKeyEqualityPred::operator()(), and Moses::NonTerminalEqualityPred::operator()().

| size_t Moses::Factor::GetId | ( | ) | const [inline] |
contiguous ID
Definition at line 67 of file Factor.h.
Referenced by Moses::LanguageModelSRI::CreateFactors(), Moses::LanguageModelORLM::CreateFactors(), Moses::LanguageModelIRST::CreateFactors(), Moses::LanguageModelSRI::GetLmID(), Moses::LanguageModelORLM::GetLmID(), Moses::LanguageModelIRST::GetLmID(), and Moses::hash_value().

| const std::string& Moses::Factor::GetString | ( | ) | const [inline] |
original string representation of the factor
Definition at line 63 of file Factor.h.
Referenced by Moses::Word::CreateUnknownWord(), Moses::SyntacticLanguageModel::Evaluate(), Moses::LanguageModelIRST::GetLmID(), Moses::LanguageModelRemote::GetValue(), Moses::LanguageModelJoint::GetValueForgotState(), Moses::TranslationOptionCollection::ProcessOneUnknownWord(), and Moses::ChartTranslationOptionCollection::ProcessOneUnknownWord().

| bool Moses::Factor::operator< | ( | const Factor & | compare | ) | const [inline] |
transitive comparison used for adding objects into FactorCollection
| bool Moses::Factor::operator== | ( | const Factor & | compare | ) | const [inline] |
| Moses::Factor::TO_STRING | ( | ) |
friend class FactorCollection [friend] |
friend class FactorFriend [friend] |
| std::ostream& operator<< | ( | std::ostream & | , | |
| const Factor & | ||||
| ) | [friend] |
1.5.9