FST  openfst-1.7.1
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 ()
 
 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 24 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 27 of file pair-weight.h.

Constructor & Destructor Documentation

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

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

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

Definition at line 31 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 60 of file pair-weight.h.

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

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

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

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

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

Definition at line 38 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 68 of file pair-weight.h.

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

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

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

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

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

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

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

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

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

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

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

Definition at line 78 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 53 of file pair-weight.h.

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

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


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