FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
fst::UnionWeight< W, O > Class Template Reference

#include <union-weight.h>

Public Types

using Weight = W
 
using Compare = typename O::Compare
 
using Merge = typename O::Merge
 
using ReverseWeight = UnionWeight< typename W::ReverseWeight, typename O::ReverseOptions >
 

Public Member Functions

 UnionWeight ()
 
 UnionWeight (W weight)
 
bool Member () const
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
size_t Hash () const
 
UnionWeight Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
void Clear ()
 
size_t Size () const
 
const W & Back () const
 
void PushBack (W weight, bool srt)
 
void Sort ()
 

Static Public Member Functions

static const UnionWeightZero ()
 
static const UnionWeightOne ()
 
static const UnionWeightNoWeight ()
 
static const std::string & Type ()
 
static constexpr uint64_t Properties ()
 

Friends

class UnionWeightIterator< W, O >
 
class UnionWeightReverseIterator< W, O >
 

Detailed Description

template<class W, class O>
class fst::UnionWeight< W, O >

Definition at line 72 of file union-weight.h.

Member Typedef Documentation

template<class W, class O>
using fst::UnionWeight< W, O >::Compare = typename O::Compare

Definition at line 88 of file union-weight.h.

template<class W, class O>
using fst::UnionWeight< W, O >::Merge = typename O::Merge

Definition at line 89 of file union-weight.h.

template<class W, class O>
using fst::UnionWeight< W, O >::ReverseWeight = UnionWeight<typename W::ReverseWeight, typename O::ReverseOptions>

Definition at line 92 of file union-weight.h.

template<class W, class O>
using fst::UnionWeight< W, O >::Weight = W

Definition at line 87 of file union-weight.h.

Constructor & Destructor Documentation

template<class W, class O>
fst::UnionWeight< W, O >::UnionWeight ( )
inline

Definition at line 100 of file union-weight.h.

template<class W, class O>
fst::UnionWeight< W, O >::UnionWeight ( weight)
inlineexplicit

Definition at line 102 of file union-weight.h.

Member Function Documentation

template<class W, class O>
const W& fst::UnionWeight< W, O >::Back ( ) const
inline

Definition at line 157 of file union-weight.h.

template<class W, class O>
void fst::UnionWeight< W, O >::Clear ( )
inline

Definition at line 150 of file union-weight.h.

template<class W , class O >
size_t fst::UnionWeight< W, O >::Hash ( ) const
inline

Definition at line 330 of file union-weight.h.

template<class W , class O >
bool fst::UnionWeight< W, O >::Member ( ) const
inline

Definition at line 301 of file union-weight.h.

template<class W, class O>
static const UnionWeight& fst::UnionWeight< W, O >::NoWeight ( )
inlinestatic

Definition at line 116 of file union-weight.h.

template<class W, class O>
static const UnionWeight& fst::UnionWeight< W, O >::One ( )
inlinestatic

Definition at line 111 of file union-weight.h.

template<class W, class O>
static constexpr uint64_t fst::UnionWeight< W, O >::Properties ( )
inlinestatic

Definition at line 128 of file union-weight.h.

template<class W, class O >
void fst::UnionWeight< W, O >::PushBack ( weight,
bool  srt 
)

Definition at line 186 of file union-weight.h.

template<class W , class O >
UnionWeight< W, O > fst::UnionWeight< W, O >::Quantize ( float  delta = kDelta) const
inline

Definition at line 310 of file union-weight.h.

template<class W , class O >
std::istream & fst::UnionWeight< W, O >::Read ( std::istream &  strm)
inline

Definition at line 278 of file union-weight.h.

template<class W , class O >
UnionWeight< W, O >::ReverseWeight fst::UnionWeight< W, O >::Reverse ( ) const
inline

Definition at line 319 of file union-weight.h.

template<class W, class O>
size_t fst::UnionWeight< W, O >::Size ( ) const
inline

Definition at line 155 of file union-weight.h.

template<class W, class O>
void fst::UnionWeight< W, O >::Sort ( )
inline

Definition at line 166 of file union-weight.h.

template<class W, class O>
static const std::string& fst::UnionWeight< W, O >::Type ( )
inlinestatic

Definition at line 122 of file union-weight.h.

template<class W , class O >
std::ostream & fst::UnionWeight< W, O >::Write ( std::ostream &  strm) const
inline

Definition at line 291 of file union-weight.h.

template<class W, class O>
static const UnionWeight& fst::UnionWeight< W, O >::Zero ( )
inlinestatic

Definition at line 106 of file union-weight.h.

Friends And Related Function Documentation

template<class W, class O>
friend class UnionWeightIterator< W, O >
friend

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

template<class W, class O>
friend class UnionWeightReverseIterator< W, O >
friend

Definition at line 95 of file union-weight.h.


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