FST  openfst-1.6.9
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 ()
 
 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 ()
 
 PairWeight (const PairWeight &weight)
 
 PairWeight (W1 w1, W2 w2)
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
PairWeight< W1, W2 > & operator= (const PairWeight< W1, W2 > &weight)
 
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 string & Type ()
 
static constexpr uint64 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 20 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 23 of file product-weight.h.

Constructor & Destructor Documentation

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

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

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

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

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

Definition at line 30 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 43 of file product-weight.h.

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

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

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

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

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

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

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

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

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

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

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

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


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