HFST - Helsinki Finite-State Transducer Technology API  version 3.7.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
HfstTransition< C > Class Template Reference

A transition that consists of a target state and transition data represented by class C. More...

#include <HfstTransition.h>

Public Member Functions

C::SymbolType get_input_symbol () const
 Get the input symbol of the transition. More...
 
C::SymbolType get_output_symbol () const
 Get the output symbol of the transition. More...
 
HfstState get_target_state () const
 Get the target state of the transition. More...
 
const C & get_transition_data () const
 Get the transition data of the transition. More...
 
C::WeightType get_weight () const
 Get the weight of the transition. More...
 
 HfstTransition ()
 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. More...
 
 HfstTransition (HfstState s, typename C::SymbolType isymbol, typename C::SymbolType osymbol, typename C::WeightType weight)
 Create a transition leading to state s with input symbol isymbol, output_symbol osymbol and weight weight. More...
 
 HfstTransition (const HfstTransition< C > &another)
 Create a deep copy of transition another. More...
 
bool operator< (const HfstTransition< C > &another) const
 Whether this transition is less than transition another. Needed for storing transitions in a set. More...
 
void operator= (const HfstTransition< C > &another)
 Assign this transition the same value as transition another. More...
 

Detailed Description

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

Constructor & Destructor Documentation

HfstTransition ( )
inline

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.

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.

HfstTransition ( const HfstTransition< C > &  another)
inline

Create a deep copy of transition another.

Member Function Documentation

C::SymbolType get_input_symbol ( ) const
inline

Get the input symbol of the transition.

C::SymbolType get_output_symbol ( ) const
inline

Get the output symbol of the transition.

HfstState get_target_state ( ) const
inline

Get the target state of the transition.

const C& get_transition_data ( ) const
inline

Get the transition data of the transition.

C::WeightType get_weight ( ) const
inline

Get the weight of the transition.

bool operator< ( const HfstTransition< C > &  another) const
inline

Whether this transition is less than transition another. Needed for storing transitions in a set.

void operator= ( const HfstTransition< C > &  another)
inline

Assign this transition the same value as transition another.


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