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

#include <float-weight.h>

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

Public Types

using ReverseWeight = TropicalWeightTpl< T >
 
using Limits = FloatLimits< T >
 
- Public Types inherited from fst::FloatWeightTpl< T >
using ValueType = T
 

Public Member Functions

 TropicalWeightTpl () noexcept
 
constexpr TropicalWeightTpl (T f)
 
constexpr bool Member () const
 
TropicalWeightTpl< T > Quantize (float delta=kDelta) const
 
constexpr TropicalWeightTpl< T > Reverse () const
 
- Public Member Functions inherited from fst::FloatWeightTpl< T >
 FloatWeightTpl () noexcept=default
 
constexpr FloatWeightTpl (T f)
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
size_t Hash () const
 
constexpr const T & Value () const
 

Static Public Member Functions

static constexpr TropicalWeightTpl< T > Zero ()
 
static constexpr TropicalWeightTpl< T > One ()
 
static constexpr TropicalWeightTpl< T > NoWeight ()
 
static const std::string & Type ()
 
static constexpr uint64_t Properties ()
 

Additional Inherited Members

- Protected Member Functions inherited from fst::FloatWeightTpl< T >
void SetValue (const T &f)
 
- Static Protected Member Functions inherited from fst::FloatWeightTpl< T >
static constexpr std::string_view GetPrecisionString ()
 

Detailed Description

template<class T>
class fst::TropicalWeightTpl< T >

Definition at line 206 of file float-weight.h.

Member Typedef Documentation

template<class T>
using fst::TropicalWeightTpl< T >::Limits = FloatLimits<T>

Definition at line 211 of file float-weight.h.

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

Definition at line 210 of file float-weight.h.

Constructor & Destructor Documentation

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

Definition at line 213 of file float-weight.h.

template<class T>
constexpr fst::TropicalWeightTpl< T >::TropicalWeightTpl ( f)
inline

Definition at line 215 of file float-weight.h.

Member Function Documentation

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

Definition at line 231 of file float-weight.h.

template<class T>
static constexpr TropicalWeightTpl<T> fst::TropicalWeightTpl< T >::NoWeight ( )
inlinestatic

Definition at line 221 of file float-weight.h.

template<class T>
static constexpr TropicalWeightTpl<T> fst::TropicalWeightTpl< T >::One ( )
inlinestatic

Definition at line 219 of file float-weight.h.

template<class T>
static constexpr uint64_t fst::TropicalWeightTpl< T >::Properties ( )
inlinestatic

Definition at line 262 of file float-weight.h.

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

Definition at line 252 of file float-weight.h.

template<class T>
constexpr TropicalWeightTpl<T> fst::TropicalWeightTpl< T >::Reverse ( ) const
inline

Definition at line 260 of file float-weight.h.

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

Definition at line 225 of file float-weight.h.

template<class T>
static constexpr TropicalWeightTpl<T> fst::TropicalWeightTpl< T >::Zero ( )
inlinestatic

Definition at line 217 of file float-weight.h.


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