HFST - Helsinki Finite-State Transducer Technology - C++ API  version 3.9.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

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

HFSTDLL 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.

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.

HFSTDLL HfstTransition ( const HfstTransition< C > &  another)
inline

Create a deep copy of transition another.

Member Function Documentation

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.

HFSTDLL HfstState get_target_state ( ) const
inline

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.

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

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

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

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: