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

#include <tuple-weight.h>

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

Public Types

using ReverseWeight = TupleWeight< typename W::ReverseWeight, n >
 

Public Member Functions

 TupleWeight ()
 
 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)
 
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 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::TupleWeight< W, n >

Definition at line 23 of file tuple-weight.h.

Member Typedef Documentation

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

Definition at line 25 of file tuple-weight.h.

Constructor & Destructor Documentation

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

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

template<class W, size_t n>
fst::TupleWeight< W, n >::TupleWeight ( const TupleWeight< W, n > &  other)
inline

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

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

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

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

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

Member Function Documentation

template<class W, size_t n>
size_t fst::TupleWeight< W, n >::Hash ( ) const
inline

Definition at line 77 of file tuple-weight.h.

template<class W, size_t n>
static constexpr size_t fst::TupleWeight< W, n >::Length ( )
inlinestatic

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

template<class W, size_t n>
bool fst::TupleWeight< W, n >::Member ( ) const
inline

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

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

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

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

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

template<class W, size_t n>
TupleWeight<W, n>& fst::TupleWeight< W, n >::operator= ( const TupleWeight< W, n > &  other)
inline

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

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

Definition at line 83 of file tuple-weight.h.

template<class W, size_t n>
std::istream& fst::TupleWeight< W, n >::Read ( std::istream &  istrm)
inline

Definition at line 62 of file tuple-weight.h.

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

Definition at line 89 of file tuple-weight.h.

template<class W, size_t n>
void fst::TupleWeight< W, n >::SetValue ( size_t  i,
const W &  w 
)
inline

Definition at line 97 of file tuple-weight.h.

template<class W, size_t n>
const W& fst::TupleWeight< W, n >::Value ( size_t  i) const
inline

Definition at line 95 of file tuple-weight.h.

template<class W, size_t n>
std::ostream& fst::TupleWeight< W, n >::Write ( std::ostream &  ostrm) const
inline

Definition at line 67 of file tuple-weight.h.

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

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


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