Public Member Functions

fst::WeightConvertMapper< A, B, C > Class Template Reference

#include <fst/arc-map.h>

List of all members.

Public Member Functions

 WeightConvertMapper (const Converter &c=Converter())
ToArc operator() (const FromArc &arc) const
constexpr MapFinalAction FinalAction () const
constexpr MapSymbolsAction InputSymbolsAction () const
constexpr MapSymbolsAction OutputSymbolsAction () const
uint64 Properties (uint64 props) const

Detailed Description

template<class A, class B, class C = WeightConvert<typename A::Weight, typename B::Weight>>
class fst::WeightConvertMapper< A, B, C >

Mapper that leaves labels and nextstate unchanged and constructs a new weight from the underlying value of the arc weight. If no weight converter is explictly specified, requires that there is a WeightConvert class specialization that converts the weights.

Definition at line 768 of file arc-map.h.


Constructor & Destructor Documentation

template<class A , class B , class C = WeightConvert<typename A::Weight, typename B::Weight>>
fst::WeightConvertMapper< A, B, C >::WeightConvertMapper ( const Converter &  c = Converter()  )  [inline, explicit]

Definition at line 776 of file arc-map.h.


Member Function Documentation

template<class A , class B , class C = WeightConvert<typename A::Weight, typename B::Weight>>
constexpr MapFinalAction fst::WeightConvertMapper< A, B, C >::FinalAction (  )  const [inline]

Definition at line 784 of file arc-map.h.

template<class A , class B , class C = WeightConvert<typename A::Weight, typename B::Weight>>
constexpr MapSymbolsAction fst::WeightConvertMapper< A, B, C >::InputSymbolsAction (  )  const [inline]

Definition at line 786 of file arc-map.h.

template<class A , class B , class C = WeightConvert<typename A::Weight, typename B::Weight>>
ToArc fst::WeightConvertMapper< A, B, C >::operator() ( const FromArc &  arc  )  const [inline]

Definition at line 779 of file arc-map.h.

template<class A , class B , class C = WeightConvert<typename A::Weight, typename B::Weight>>
constexpr MapSymbolsAction fst::WeightConvertMapper< A, B, C >::OutputSymbolsAction (  )  const [inline]

Definition at line 790 of file arc-map.h.

template<class A , class B , class C = WeightConvert<typename A::Weight, typename B::Weight>>
uint64 fst::WeightConvertMapper< A, B, C >::Properties ( uint64  props  )  const [inline]

Definition at line 794 of file arc-map.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines