FST  openfst-1.8.3
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=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
 

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 72 of file float-weight.h.

Member Typedef Documentation

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

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

Constructor & Destructor Documentation

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

Definition at line 78 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 101 of file float-weight.h.

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

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

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

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

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

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

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

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

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

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


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