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

#include <pair-weight.h>

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

Public Types

using ReverseWeight = PairWeight< typename W1::ReverseWeight, typename W2::ReverseWeight >
 

Public Member Functions

 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 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::PairWeight< W1, W2 >

Definition at line 41 of file pair-weight.h.

Member Typedef Documentation

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

Definition at line 44 of file pair-weight.h.

Constructor & Destructor Documentation

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

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

Member Function Documentation

template<class W1, class W2>
size_t fst::PairWeight< W1, W2 >::Hash ( ) const
inline

Definition at line 77 of file pair-weight.h.

template<class W1, class W2>
bool fst::PairWeight< W1, W2 >::Member ( ) const
inline

Definition at line 75 of file pair-weight.h.

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

Definition at line 60 of file pair-weight.h.

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

Definition at line 55 of file pair-weight.h.

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

Definition at line 85 of file pair-weight.h.

template<class W1, class W2>
std::istream& fst::PairWeight< W1, W2 >::Read ( std::istream &  strm)
inline

Definition at line 65 of file pair-weight.h.

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

Definition at line 89 of file pair-weight.h.

template<class W1, class W2>
void fst::PairWeight< W1, W2 >::SetValue1 ( const W1 &  weight)
inline

Definition at line 97 of file pair-weight.h.

template<class W1, class W2>
void fst::PairWeight< W1, W2 >::SetValue2 ( const W2 &  weight)
inline

Definition at line 99 of file pair-weight.h.

template<class W1, class W2>
const W1& fst::PairWeight< W1, W2 >::Value1 ( ) const
inline

Definition at line 93 of file pair-weight.h.

template<class W1, class W2>
const W2& fst::PairWeight< W1, W2 >::Value2 ( ) const
inline

Definition at line 95 of file pair-weight.h.

template<class W1, class W2>
std::ostream& fst::PairWeight< W1, W2 >::Write ( std::ostream &  strm) const
inline

Definition at line 70 of file pair-weight.h.

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

Definition at line 50 of file pair-weight.h.


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