FST  openfst-1.7.0
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< W, O > 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 UnionWeight< W, O > & Zero ()
 
static const UnionWeight< W, O > & One ()
 
static const UnionWeight< W, O > & NoWeight ()
 
static const string & Type ()
 
static constexpr uint64 Properties ()
 

Friends

class UnionWeightIterator< W, O >
 
class UnionWeightReverseIterator< W, O >
 
bool operator== (const UnionWeight< W, O > &, const UnionWeight< W, O > &)
 

Detailed Description

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Friends And Related Function Documentation

template<class W, class O>
bool operator== ( const UnionWeight< W, O > &  w1,
const UnionWeight< W, O > &  w2 
)
friend

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

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

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

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

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


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