4 namespace implementations {
33 input_number(0), output_number(0), weight(0) {}
39 input_number = data.input_number;
40 output_number = data.output_number;
50 input_number = inumber;
51 output_number = onumber;
52 this->weight = weight;
95 static bool is_valid_symbol(
const SymbolType &s) {
103 for (SymbolTypeSet::const_iterator it = sts.begin();
104 it != sts.end(); it++) {
117 if (input_number < another.input_number )
119 if (input_number > another.input_number)
121 if (output_number < another.output_number)
123 if (output_number > another.output_number)
125 return (weight < another.weight);
130 input_number = another.input_number;
131 output_number = another.output_number;
132 weight = another.weight;
135 friend class ComposeIntersectFst;
136 friend class ComposeIntersectLexicon;
137 friend class ComposeIntersectRule;
138 friend class ComposeIntersectRulePair;
HfstFastTransitionData()
Create an HfstFastTransitionData with input and output numbers and weight zero.
Definition: HfstFastTransitionData.h:32
WeightType get_weight() const
Get the weight.
Definition: HfstFastTransitionData.h:66
SymbolType get_input_symbol() const
Get the input symbol.
Definition: HfstFastTransitionData.h:56
unsigned int SymbolType
The input and output symbol type.
Definition: HfstFastTransitionData.h:16
float WeightType
The weight type.
Definition: HfstFastTransitionData.h:18
std::set< SymbolType > SymbolTypeSet
A set of symbols.
Definition: HfstFastTransitionData.h:20
SymbolType get_output_symbol() const
Get the output symbol.
Definition: HfstFastTransitionData.h:61
One implementation of template class C in HfstTransition.
Definition: HfstFastTransitionData.h:13
HfstFastTransitionData(SymbolType inumber, SymbolType onumber, WeightType weight)
Create an HfstFastTransitionData with input number inumber, output number onumber and weight weight...
Definition: HfstFastTransitionData.h:47
bool operator<(const HfstFastTransitionData &another) const
Whether this transition is less than transition another.
Definition: HfstFastTransitionData.h:115