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

#include <float-weight.h>

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

Public Types

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

Public Member Functions

 RealWeightTpl () noexcept
 
constexpr RealWeightTpl (T f)
 
constexpr bool Member () const
 
RealWeightTpl< T > Quantize (float delta=kDelta) const
 
constexpr RealWeightTpl< T > Reverse () const
 
- Public Member Functions inherited from fst::FloatWeightTpl< T >
 FloatWeightTpl () noexcept
 
constexpr FloatWeightTpl (T f)
 
 FloatWeightTpl (const FloatWeightTpl &)=default
 
 FloatWeightTpl (FloatWeightTpl &&) noexcept=default
 
FloatWeightTploperator= (const FloatWeightTpl &)=default
 
FloatWeightTploperator= (FloatWeightTpl &&) noexcept=default
 
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 RealWeightTpl Zero ()
 
static constexpr RealWeightTpl One ()
 
static constexpr RealWeightTpl NoWeight ()
 
static const std::string & Type ()
 
static constexpr uint64 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 const char * GetPrecisionString ()
 

Detailed Description

template<class T>
class fst::RealWeightTpl< T >

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

Member Typedef Documentation

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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