A transition that consists of a target state and transition data represented by class C.
More...
#include <HfstTransition.h>
template<class C>
class hfst::implementations::HfstTransition< C >
A transition that consists of a target state and transition data represented by class C.
The easiest way to use this template is to choose the the implementation HfstBasicTransition which is compatible with HfstBasicTransducer.
- See also
- HfstBasicTransition
Create a transition leading to state zero with input and output symbols and weight as given by default constructors of C::SymbolType and C::WeightType.
HFSTDLL HfstTransition |
( |
HfstState |
s, |
|
|
typename C::SymbolType |
isymbol, |
|
|
typename C::SymbolType |
osymbol, |
|
|
typename C::WeightType |
weight |
|
) |
| |
|
inline |
Create a transition leading to state s with input symbol isymbol, output_symbol osymbol and weight weight.
Create a deep copy of transition another.
HFSTDLL C::SymbolType get_input_symbol |
( |
| ) |
const |
|
inline |
Get the input symbol of the transition.
HFSTDLL C::SymbolType get_output_symbol |
( |
| ) |
const |
|
inline |
Get the output symbol of the transition.
Get the target state of the transition.
HFSTDLL const C& get_transition_data |
( |
| ) |
const |
|
inline |
Get the transition data of the transition.
HFSTDLL C::WeightType get_weight |
( |
| ) |
const |
|
inline |
Get the weight of the transition.
Whether this transition is less than transition another. Needed for storing transitions in a set.
Assign this transition the same value as transition another.
HFSTDLL void set_weight |
( |
float |
w | ) |
|
|
inline |
Set the weight of the transition.
The documentation for this class was generated from the following files: