FST  openfst-1.8.3
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 ()=default
 
 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 >
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 std::string & Type ()
 
static constexpr uint64_t 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 43 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 45 of file power-weight.h.

Constructor & Destructor Documentation

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

Definition at line 49 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 53 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 57 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 71 of file power-weight.h.

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

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

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

Definition at line 82 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 87 of file power-weight.h.

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

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

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

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

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

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


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