FST  openfst-1.7.0
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)
 
 FloatWeightTpl (const FloatWeightTpl< T > &)=default
 
 FloatWeightTpl (FloatWeightTpl< T > &&) noexcept=default
 
FloatWeightTpl< T > & operator= (const FloatWeightTpl< T > &)=default
 
FloatWeightTpl< T > & operator= (FloatWeightTpl< T > &&) noexcept=default
 
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 const char * GetPrecisionString ()
 

Detailed Description

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

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

Member Typedef Documentation

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

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

Constructor & Destructor Documentation

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

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

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

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

template<class T = float>
fst::FloatWeightTpl< T >::FloatWeightTpl ( const FloatWeightTpl< T > &  )
default
template<class T = float>
fst::FloatWeightTpl< T >::FloatWeightTpl ( FloatWeightTpl< T > &&  )
defaultnoexcept

Member Function Documentation

template<class T = float>
static constexpr const char* fst::FloatWeightTpl< T >::GetPrecisionString ( )
inlinestaticprotected

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

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

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

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

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

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

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

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

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

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

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


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