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

#include <lexicographic-weight.h>

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

Public Types

using ReverseWeight = LexicographicWeight< typename W1::ReverseWeight, typename W2::ReverseWeight >
 
- Public Types inherited from fst::PairWeight< W1, W2 >
using ReverseWeight = PairWeight< typename W1::ReverseWeight, typename W2::ReverseWeight >
 

Public Member Functions

 LexicographicWeight ()
 
 LexicographicWeight (const PairWeight< W1, W2 > &w)
 
 LexicographicWeight (W1 w1, W2 w2)
 
bool Member () const
 
LexicographicWeight Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
- Public Member Functions inherited from fst::PairWeight< W1, W2 >
 PairWeight ()
 
 PairWeight (const PairWeight &weight)
 
 PairWeight (W1 w1, W2 w2)
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
PairWeight< W1, W2 > & operator= (const PairWeight< W1, W2 > &weight)
 
bool Member () const
 
size_t Hash () const
 
PairWeight< W1, W2 > Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
const W1 & Value1 () const
 
const W2 & Value2 () const
 
void SetValue1 (const W1 &weight)
 
void SetValue2 (const W2 &weight)
 

Static Public Member Functions

static const LexicographicWeightZero ()
 
static const LexicographicWeightOne ()
 
static const LexicographicWeightNoWeight ()
 
static const string & Type ()
 
static constexpr uint64 Properties ()
 
- Static Public Member Functions inherited from fst::PairWeight< W1, W2 >
static const PairWeight< W1, W2 > & Zero ()
 
static const PairWeight< W1, W2 > & One ()
 
static const PairWeight< W1, W2 > & NoWeight ()
 

Detailed Description

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

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

Member Typedef Documentation

template<class W1, class W2>
using fst::LexicographicWeight< W1, W2 >::ReverseWeight = LexicographicWeight<typename W1::ReverseWeight, typename W2::ReverseWeight>

Definition at line 32 of file lexicographic-weight.h.

Constructor & Destructor Documentation

template<class W1, class W2>
fst::LexicographicWeight< W1, W2 >::LexicographicWeight ( )
inline

Definition at line 44 of file lexicographic-weight.h.

template<class W1, class W2>
fst::LexicographicWeight< W1, W2 >::LexicographicWeight ( const PairWeight< W1, W2 > &  w)
inlineexplicit

Definition at line 46 of file lexicographic-weight.h.

template<class W1, class W2>
fst::LexicographicWeight< W1, W2 >::LexicographicWeight ( W1  w1,
W2  w2 
)
inline

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

Member Function Documentation

template<class W1, class W2>
bool fst::LexicographicWeight< W1, W2 >::Member ( ) const
inline

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

template<class W1, class W2>
static const LexicographicWeight& fst::LexicographicWeight< W1, W2 >::NoWeight ( )
inlinestatic

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

template<class W1, class W2>
static const LexicographicWeight& fst::LexicographicWeight< W1, W2 >::One ( )
inlinestatic

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

template<class W1, class W2>
static constexpr uint64 fst::LexicographicWeight< W1, W2 >::Properties ( )
inlinestatic

Definition at line 99 of file lexicographic-weight.h.

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

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

template<class W1, class W2>
ReverseWeight fst::LexicographicWeight< W1, W2 >::Reverse ( ) const
inline

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

template<class W1, class W2>
static const string& fst::LexicographicWeight< W1, W2 >::Type ( )
inlinestatic

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

template<class W1, class W2>
static const LexicographicWeight& fst::LexicographicWeight< W1, W2 >::Zero ( )
inlinestatic

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


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