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

#include <float-weight.h>

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

Public Types

using ValueType = T
 

Public Member Functions

 FloatWeightTpl () noexcept
 
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
 

Protected Member Functions

void SetValue (const T &f)
 

Static Protected Member Functions

static constexpr std::string_view GetPrecisionString ()
 

Detailed Description

template<class T = float>
class fst::FloatWeightTpl< T >

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

Member Typedef Documentation

template<class T = float>
using fst::FloatWeightTpl< T >::ValueType = T

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

Constructor & Destructor Documentation

template<class T = float>
fst::FloatWeightTpl< T >::FloatWeightTpl ( )
inlinenoexcept

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

template<class T = float>
constexpr fst::FloatWeightTpl< T >::FloatWeightTpl ( f)
inline

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

Member Function Documentation

template<class T = float>
static constexpr std::string_view fst::FloatWeightTpl< T >::GetPrecisionString ( )
inlinestaticprotected

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

template<class T = float>
size_t fst::FloatWeightTpl< T >::Hash ( ) const
inline

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

template<class T = float>
std::istream& fst::FloatWeightTpl< T >::Read ( std::istream &  strm)
inline

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

template<class T = float>
void fst::FloatWeightTpl< T >::SetValue ( const T &  f)
inlineprotected

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

template<class T = float>
constexpr const T& fst::FloatWeightTpl< T >::Value ( ) const
inline

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

template<class T = float>
std::ostream& fst::FloatWeightTpl< T >::Write ( std::ostream &  strm) const
inline

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


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