Public Types | Public Member Functions | Static Public Member Functions

fst::ProductWeight< W1, W2 > Class Template Reference

Product semiring: W1 * W2. More...

#include <fst/product-weight.h>

Inherits fst::PairWeight< W1, W2 >.

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

List of all members.

Public Types

typedef ProductWeight
< typename W1::ReverseWeight,
typename W2::ReverseWeight > 
ReverseWeight

Public Member Functions

 ProductWeight ()
 ProductWeight (const PairWeight< W1, W2 > &w)
 ProductWeight (W1 w1, W2 w2)
ProductWeight< W1, W2 > Quantize (float delta=kDelta) const
ReverseWeight Reverse () const

Static Public Member Functions

static const ProductWeight< W1,
W2 > & 
Zero ()
static const ProductWeight< W1,
W2 > & 
One ()
static const string & Type ()
static uint64 Properties ()

Detailed Description

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

Product semiring: W1 * W2.

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


Member Typedef Documentation

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

Constructor & Destructor Documentation

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

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

template<class W1, class W2>
fst::ProductWeight< W1, W2 >::ProductWeight ( const PairWeight< W1, W2 > &  w  )  [inline]

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

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

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


Member Function Documentation

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

Reimplemented from fst::PairWeight< W1, W2 >.

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

template<class W1, class W2>
static uint64 fst::ProductWeight< W1, W2 >::Properties (  )  [inline, static]

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

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

Reimplemented from fst::PairWeight< W1, W2 >.

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

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

Reimplemented from fst::PairWeight< W1, W2 >.

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

template<class W1, class W2>
static const string& fst::ProductWeight< W1, W2 >::Type ( void   )  [inline, static]

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

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

Reimplemented from fst::PairWeight< W1, W2 >.

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines