FST  openfst-1.8.1
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 W1 = TropicalWeight
 
using W2 = 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 () noexcept
 
 SignedLogWeightTpl (const W2 &w2)
 
 SignedLogWeightTpl (const PairWeight< W1, W2 > &weight)
 
 SignedLogWeightTpl (const W1 &w1, const W2 &w2)
 
bool IsPositive () const
 
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 (TropicalWeightw1, LogWeightTpl< T >w2)
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
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 std::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 39 of file signed-log-weight.h.

Member Typedef Documentation

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

template<class T>
fst::SignedLogWeightTpl< T >::SignedLogWeightTpl ( const W2 w2)
inline

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

template<class T>
fst::SignedLogWeightTpl< T >::SignedLogWeightTpl ( const PairWeight< W1, W2 > &  weight)
inlineexplicit

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

template<class T>
fst::SignedLogWeightTpl< T >::SignedLogWeightTpl ( const W1 w1,
const W2 w2 
)
inline

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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