FST  openfst-1.8.2
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 69 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 87 of file union-weight.h.

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

Definition at line 88 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 91 of file union-weight.h.

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

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

Constructor & Destructor Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 185 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 309 of file union-weight.h.

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

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

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

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

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

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

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

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

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

Definition at line 121 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 290 of file union-weight.h.

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

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

Friends And Related Function Documentation

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

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

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

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


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