Public Types | Public Member Functions | Static Public Member Functions

fst::SparsePowerWeight< W, K > Class Template Reference

#include <fst/sparse-power-weight.h>

Inherits fst::SparseTupleWeight< W, K >.

Collaboration diagram for fst::SparsePowerWeight< W, K >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef SparsePowerWeight
< typename W::ReverseWeight, K > 
ReverseWeight

Public Member Functions

 SparsePowerWeight ()
 SparsePowerWeight (const SparseTupleWeight< W, K > &w)
template<class Iterator >
 SparsePowerWeight (Iterator begin, Iterator end)
 SparsePowerWeight (const K &key, const W &w)
SparsePowerWeight< W, K > Quantize (float delta=kDelta) const
ReverseWeight Reverse () const

Static Public Member Functions

static const SparsePowerWeight
< W, K > & 
Zero ()
static const SparsePowerWeight
< W, K > & 
One ()
static const string & Type ()
static uint64 Properties ()

Detailed Description

template<class W, class K = int>
class fst::SparsePowerWeight< W, K >

Sparse cartesian power semiring: W ^ n Forms:

Definition at line 79 of file sparse-power-weight.h.


Member Typedef Documentation

template<class W, class K = int>
typedef SparsePowerWeight<typename W::ReverseWeight, K> fst::SparsePowerWeight< W, K >::ReverseWeight

Reimplemented from fst::SparseTupleWeight< W, K >.

Definition at line 86 of file sparse-power-weight.h.


Constructor & Destructor Documentation

template<class W, class K = int>
fst::SparsePowerWeight< W, K >::SparsePowerWeight (  )  [inline]

Definition at line 88 of file sparse-power-weight.h.

template<class W, class K = int>
fst::SparsePowerWeight< W, K >::SparsePowerWeight ( const SparseTupleWeight< W, K > &  w  )  [inline]

Definition at line 90 of file sparse-power-weight.h.

template<class W, class K = int>
template<class Iterator >
fst::SparsePowerWeight< W, K >::SparsePowerWeight ( Iterator  begin,
Iterator  end 
) [inline]

Definition at line 94 of file sparse-power-weight.h.

template<class W, class K = int>
fst::SparsePowerWeight< W, K >::SparsePowerWeight ( const K &  key,
const W &  w 
) [inline]

Definition at line 97 of file sparse-power-weight.h.


Member Function Documentation

template<class W, class K = int>
static const SparsePowerWeight<W, K>& fst::SparsePowerWeight< W, K >::One (  )  [inline, static]

Reimplemented from fst::SparseTupleWeight< W, K >.

Definition at line 105 of file sparse-power-weight.h.

template<class W, class K = int>
static uint64 fst::SparsePowerWeight< W, K >::Properties (  )  [inline, static]

Definition at line 125 of file sparse-power-weight.h.

template<class W, class K = int>
SparsePowerWeight<W, K> fst::SparsePowerWeight< W, K >::Quantize ( float  delta = kDelta  )  const [inline]

Reimplemented from fst::SparseTupleWeight< W, K >.

Definition at line 131 of file sparse-power-weight.h.

template<class W, class K = int>
ReverseWeight fst::SparsePowerWeight< W, K >::Reverse (  )  const [inline]

Reimplemented from fst::SparseTupleWeight< W, K >.

Definition at line 135 of file sparse-power-weight.h.

template<class W, class K = int>
static const string& fst::SparsePowerWeight< W, K >::Type ( void   )  [inline, static]

Overide this: Overwrite the Type method to reflect the key type if using non-default key type.

Definition at line 112 of file sparse-power-weight.h.

template<class W, class K = int>
static const SparsePowerWeight<W, K>& fst::SparsePowerWeight< W, K >::Zero (  )  [inline, static]

Reimplemented from fst::SparseTupleWeight< W, K >.

Definition at line 100 of file sparse-power-weight.h.


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