FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::ProjectPowerWeightMapper< PowerWeightT > Class Template Reference

#include <power-weight-mappers.h>

Public Types

using FromWeight = PowerWeightT
 
using ToWeight = PowerWeightT
 
using Index = typename PowerWeightT::Index
 
using ComponentWeight = typename PowerWeightT::Weight
 

Public Member Functions

 ProjectPowerWeightMapper (Index from_index=0, Index to_index=0, const ComponentWeight &default_weight=ComponentWeight::Zero())
 
PowerWeightT operator() (const PowerWeightT &w) const
 

Detailed Description

template<class PowerWeightT>
class fst::ProjectPowerWeightMapper< PowerWeightT >

Definition at line 67 of file power-weight-mappers.h.

Member Typedef Documentation

template<class PowerWeightT >
using fst::ProjectPowerWeightMapper< PowerWeightT >::ComponentWeight = typename PowerWeightT::Weight

Definition at line 72 of file power-weight-mappers.h.

template<class PowerWeightT >
using fst::ProjectPowerWeightMapper< PowerWeightT >::FromWeight = PowerWeightT

Definition at line 69 of file power-weight-mappers.h.

template<class PowerWeightT >
using fst::ProjectPowerWeightMapper< PowerWeightT >::Index = typename PowerWeightT::Index

Definition at line 71 of file power-weight-mappers.h.

template<class PowerWeightT >
using fst::ProjectPowerWeightMapper< PowerWeightT >::ToWeight = PowerWeightT

Definition at line 70 of file power-weight-mappers.h.

Constructor & Destructor Documentation

template<class PowerWeightT >
fst::ProjectPowerWeightMapper< PowerWeightT >::ProjectPowerWeightMapper ( Index  from_index = 0,
Index  to_index = 0,
const ComponentWeight default_weight = ComponentWeight::Zero() 
)
inlineexplicit

Definition at line 74 of file power-weight-mappers.h.

Member Function Documentation

template<class PowerWeightT >
PowerWeightT fst::ProjectPowerWeightMapper< PowerWeightT >::operator() ( const PowerWeightT &  w) const
inline

Definition at line 81 of file power-weight-mappers.h.


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