FST  openfst-1.6.9
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::PowerWeight< W, n > Class Template Reference

#include <power-weight.h>

Inheritance diagram for fst::PowerWeight< W, n >:
Inheritance graph
[legend]
Collaboration diagram for fst::PowerWeight< W, n >:
Collaboration graph
[legend]

Public Types

using ReverseWeight = PowerWeight< typename W::ReverseWeight, n >
 
- Public Types inherited from fst::TupleWeight< W, n >
using ReverseWeight = TupleWeight< typename W::ReverseWeight, n >
 
using Weight = W
 
using Index = size_t
 

Public Member Functions

 PowerWeight ()
 
 PowerWeight (const TupleWeight< W, n > &weight)
 
template<class Iterator >
 PowerWeight (Iterator begin, Iterator end)
 
 PowerWeight (size_t index, const W &weight, const W &default_weight=W::Zero())
 
PowerWeight Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
- Public Member Functions inherited from fst::TupleWeight< W, n >
 TupleWeight (const TupleWeight &other)
 
TupleWeight< W, n > & operator= (const TupleWeight< W, n > &other)
 
template<class Iterator >
 TupleWeight (Iterator begin, Iterator end)
 
 TupleWeight (const W &weight=W::Zero())
 
 TupleWeight (Index index, const W &weight, const W &default_weight)
 
std::istream & Read (std::istream &istrm)
 
std::ostream & Write (std::ostream &ostrm) const
 
bool Member () const
 
size_t Hash () const
 
TupleWeight< W, n > Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
const W & Value (size_t i) const
 
void SetValue (size_t i, const W &w)
 

Static Public Member Functions

static const PowerWeightZero ()
 
static const PowerWeightOne ()
 
static const PowerWeightNoWeight ()
 
static const string & Type ()
 
static constexpr uint64 Properties ()
 
- Static Public Member Functions inherited from fst::TupleWeight< W, n >
static const TupleWeight< W, n > & Zero ()
 
static const TupleWeight< W, n > & One ()
 
static const TupleWeight< W, n > & NoWeight ()
 
static constexpr size_t Length ()
 

Detailed Description

template<class W, size_t n>
class fst::PowerWeight< W, n >

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

Member Typedef Documentation

template<class W, size_t n>
using fst::PowerWeight< W, n >::ReverseWeight = PowerWeight<typename W::ReverseWeight, n>

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

Constructor & Destructor Documentation

template<class W, size_t n>
fst::PowerWeight< W, n >::PowerWeight ( )
inline

Definition at line 31 of file power-weight.h.

template<class W, size_t n>
fst::PowerWeight< W, n >::PowerWeight ( const TupleWeight< W, n > &  weight)
inlineexplicit

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

template<class W, size_t n>
template<class Iterator >
fst::PowerWeight< W, n >::PowerWeight ( Iterator  begin,
Iterator  end 
)
inline

Definition at line 37 of file power-weight.h.

template<class W, size_t n>
fst::PowerWeight< W, n >::PowerWeight ( size_t  index,
const W &  weight,
const W &  default_weight = W::Zero() 
)
inline

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

Member Function Documentation

template<class W, size_t n>
static const PowerWeight& fst::PowerWeight< W, n >::NoWeight ( )
inlinestatic

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

template<class W, size_t n>
static const PowerWeight& fst::PowerWeight< W, n >::One ( )
inlinestatic

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

template<class W, size_t n>
static constexpr uint64 fst::PowerWeight< W, n >::Properties ( )
inlinestatic

Definition at line 66 of file power-weight.h.

template<class W, size_t n>
PowerWeight fst::PowerWeight< W, n >::Quantize ( float  delta = kDelta) const
inline

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

template<class W, size_t n>
ReverseWeight fst::PowerWeight< W, n >::Reverse ( ) const
inline

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

template<class W, size_t n>
static const string& fst::PowerWeight< W, n >::Type ( )
inlinestatic

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

template<class W, size_t n>
static const PowerWeight& fst::PowerWeight< W, n >::Zero ( )
inlinestatic

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


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