FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::ProductWeight< W1, W2 > Class Template Reference

#include <product-weight.h>

Inheritance diagram for fst::ProductWeight< W1, W2 >:
Inheritance graph
[legend]
Collaboration diagram for fst::ProductWeight< W1, W2 >:
Collaboration graph
[legend]

Public Types

using ReverseWeight = ProductWeight< typename W1::ReverseWeight, typename W2::ReverseWeight >
 
- Public Types inherited from fst::PairWeight< W1, W2 >
using ReverseWeight = PairWeight< typename W1::ReverseWeight, typename W2::ReverseWeight >
 

Public Member Functions

 ProductWeight ()=default
 
 ProductWeight (const PairWeight< W1, W2 > &weight)
 
 ProductWeight (W1 w1, W2 w2)
 
ProductWeight Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
- Public Member Functions inherited from fst::PairWeight< W1, W2 >
 PairWeight ()=default
 
 PairWeight (W1 w1, W2 w2)
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
bool Member () const
 
size_t Hash () const
 
PairWeight< W1, W2 > Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
const W1 & Value1 () const
 
const W2 & Value2 () const
 
void SetValue1 (const W1 &weight)
 
void SetValue2 (const W2 &weight)
 

Static Public Member Functions

static const ProductWeightZero ()
 
static const ProductWeightOne ()
 
static const ProductWeightNoWeight ()
 
static const std::string & Type ()
 
static constexpr uint64_t Properties ()
 
- Static Public Member Functions inherited from fst::PairWeight< W1, W2 >
static const PairWeight< W1, W2 > & Zero ()
 
static const PairWeight< W1, W2 > & One ()
 
static const PairWeight< W1, W2 > & NoWeight ()
 

Detailed Description

template<class W1, class W2>
class fst::ProductWeight< W1, W2 >

Definition at line 35 of file product-weight.h.

Member Typedef Documentation

template<class W1, class W2>
using fst::ProductWeight< W1, W2 >::ReverseWeight = ProductWeight<typename W1::ReverseWeight, typename W2::ReverseWeight>

Definition at line 38 of file product-weight.h.

Constructor & Destructor Documentation

template<class W1, class W2>
fst::ProductWeight< W1, W2 >::ProductWeight ( )
default
template<class W1, class W2>
fst::ProductWeight< W1, W2 >::ProductWeight ( const PairWeight< W1, W2 > &  weight)
inlineexplicit

Definition at line 42 of file product-weight.h.

template<class W1, class W2>
fst::ProductWeight< W1, W2 >::ProductWeight ( W1  w1,
W2  w2 
)
inline

Definition at line 45 of file product-weight.h.

Member Function Documentation

template<class W1, class W2>
static const ProductWeight& fst::ProductWeight< W1, W2 >::NoWeight ( )
inlinestatic

Definition at line 58 of file product-weight.h.

template<class W1, class W2>
static const ProductWeight& fst::ProductWeight< W1, W2 >::One ( )
inlinestatic

Definition at line 53 of file product-weight.h.

template<class W1, class W2>
static constexpr uint64_t fst::ProductWeight< W1, W2 >::Properties ( )
inlinestatic

Definition at line 69 of file product-weight.h.

template<class W1, class W2>
ProductWeight fst::ProductWeight< W1, W2 >::Quantize ( float  delta = kDelta) const
inline

Definition at line 74 of file product-weight.h.

template<class W1, class W2>
ReverseWeight fst::ProductWeight< W1, W2 >::Reverse ( ) const
inline

Definition at line 78 of file product-weight.h.

template<class W1, class W2>
static const std::string& fst::ProductWeight< W1, W2 >::Type ( )
inlinestatic

Definition at line 63 of file product-weight.h.

template<class W1, class W2>
static const ProductWeight& fst::ProductWeight< W1, W2 >::Zero ( )
inlinestatic

Definition at line 48 of file product-weight.h.


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