FST  openfst-1.6.9
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::SignedLogWeightTpl< T > Class Template Reference

#include <signed-log-weight.h>

Inheritance diagram for fst::SignedLogWeightTpl< T >:
Inheritance graph
[legend]
Collaboration diagram for fst::SignedLogWeightTpl< T >:
Collaboration graph
[legend]

Public Types

using X1 = TropicalWeight
 
using X2 = LogWeightTpl< T >
 
using ReverseWeight = SignedLogWeightTpl
 
- Public Types inherited from fst::PairWeight< TropicalWeight, LogWeightTpl< T > >
using ReverseWeight = PairWeight< typename TropicalWeight::ReverseWeight, typename LogWeightTpl< T >::ReverseWeight >
 

Public Member Functions

 SignedLogWeightTpl ()
 
 SignedLogWeightTpl (const SignedLogWeightTpl &w)
 
 SignedLogWeightTpl (const PairWeight< X1, X2 > &w)
 
 SignedLogWeightTpl (const X1 &x1, const X2 &x2)
 
SignedLogWeightTpl Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
bool Member () const
 
size_t Hash () const
 
- Public Member Functions inherited from fst::PairWeight< TropicalWeight, LogWeightTpl< T > >
 PairWeight ()
 
 PairWeight (const PairWeight &weight)
 
 PairWeight (TropicalWeightw1, LogWeightTpl< T >w2)
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
PairWeight< TropicalWeight, LogWeightTpl< T > > & operator= (const PairWeight< TropicalWeight, LogWeightTpl< T > > &weight)
 
bool Member () const
 
size_t Hash () const
 
PairWeight< TropicalWeight, LogWeightTpl< T > > Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
const TropicalWeightValue1 () const
 
const LogWeightTpl< T > & Value2 () const
 
void SetValue1 (const TropicalWeight &weight)
 
void SetValue2 (const LogWeightTpl< T > &weight)
 

Static Public Member Functions

static const SignedLogWeightTplZero ()
 
static const SignedLogWeightTplOne ()
 
static const SignedLogWeightTplNoWeight ()
 
static const string & Type ()
 
static constexpr uint64 Properties ()
 
- Static Public Member Functions inherited from fst::PairWeight< TropicalWeight, LogWeightTpl< T > >
static const PairWeight< TropicalWeight, LogWeightTpl< T > > & Zero ()
 
static const PairWeight< TropicalWeight, LogWeightTpl< T > > & One ()
 
static const PairWeight< TropicalWeight, LogWeightTpl< T > > & NoWeight ()
 

Detailed Description

template<class T>
class fst::SignedLogWeightTpl< T >

Definition at line 23 of file signed-log-weight.h.

Member Typedef Documentation

template<class T>
using fst::SignedLogWeightTpl< T >::ReverseWeight = SignedLogWeightTpl

Definition at line 27 of file signed-log-weight.h.

template<class T>
using fst::SignedLogWeightTpl< T >::X1 = TropicalWeight

Definition at line 25 of file signed-log-weight.h.

template<class T>
using fst::SignedLogWeightTpl< T >::X2 = LogWeightTpl<T>

Definition at line 26 of file signed-log-weight.h.

Constructor & Destructor Documentation

template<class T>
fst::SignedLogWeightTpl< T >::SignedLogWeightTpl ( )
inline

Definition at line 32 of file signed-log-weight.h.

template<class T>
fst::SignedLogWeightTpl< T >::SignedLogWeightTpl ( const SignedLogWeightTpl< T > &  w)
inline

Definition at line 34 of file signed-log-weight.h.

template<class T>
fst::SignedLogWeightTpl< T >::SignedLogWeightTpl ( const PairWeight< X1, X2 > &  w)
inlineexplicit

Definition at line 36 of file signed-log-weight.h.

template<class T>
fst::SignedLogWeightTpl< T >::SignedLogWeightTpl ( const X1 x1,
const X2 x2 
)
inline

Definition at line 39 of file signed-log-weight.h.

Member Function Documentation

template<class T>
size_t fst::SignedLogWeightTpl< T >::Hash ( ) const
inline

Definition at line 77 of file signed-log-weight.h.

template<class T>
bool fst::SignedLogWeightTpl< T >::Member ( ) const
inline

Definition at line 70 of file signed-log-weight.h.

template<class T>
static const SignedLogWeightTpl& fst::SignedLogWeightTpl< T >::NoWeight ( )
inlinestatic

Definition at line 51 of file signed-log-weight.h.

template<class T>
static const SignedLogWeightTpl& fst::SignedLogWeightTpl< T >::One ( )
inlinestatic

Definition at line 46 of file signed-log-weight.h.

template<class T>
static constexpr uint64 fst::SignedLogWeightTpl< T >::Properties ( )
inlinestatic

Definition at line 73 of file signed-log-weight.h.

template<class T>
SignedLogWeightTpl fst::SignedLogWeightTpl< T >::Quantize ( float  delta = kDelta) const
inline

Definition at line 62 of file signed-log-weight.h.

template<class T>
ReverseWeight fst::SignedLogWeightTpl< T >::Reverse ( ) const
inline

Definition at line 66 of file signed-log-weight.h.

template<class T>
static const string& fst::SignedLogWeightTpl< T >::Type ( )
inlinestatic

Definition at line 56 of file signed-log-weight.h.

template<class T>
static const SignedLogWeightTpl& fst::SignedLogWeightTpl< T >::Zero ( )
inlinestatic

Definition at line 41 of file signed-log-weight.h.


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