FST  openfst-1.7.0
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::GallicWeight< Label, W, G > Struct Template Reference

#include <string-weight.h>

Inheritance diagram for fst::GallicWeight< Label, W, G >:
Inheritance graph
[legend]
Collaboration diagram for fst::GallicWeight< Label, W, G >:
Collaboration graph
[legend]

Public Types

using ReverseWeight = GallicWeight< Label, typename W::ReverseWeight, ReverseGallicType(G)>
 
using SW = StringWeight< Label, GallicStringType(G)>
 
- Public Types inherited from fst::ProductWeight< StringWeight< Label, GallicStringType(G)>, W >
using ReverseWeight = ProductWeight< typename StringWeight< Label, GallicStringType(G)>::ReverseWeight, typename W::ReverseWeight >
 
- Public Types inherited from fst::PairWeight< StringWeight< Label, GallicStringType(G)>, W >
using ReverseWeight = PairWeight< typename StringWeight< Label, GallicStringType(G)>::ReverseWeight, typename W::ReverseWeight >
 

Public Member Functions

 GallicWeight ()
 
 GallicWeight (SW w1, W w2)
 
 GallicWeight (const string &s, int *nread=nullptr)
 
 GallicWeight (const ProductWeight< SW, W > &w)
 
GallicWeight Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
- Public Member Functions inherited from fst::ProductWeight< StringWeight< Label, GallicStringType(G)>, W >
 ProductWeight ()
 
 ProductWeight (const PairWeight< StringWeight< Label, GallicStringType(G)>, W > &weight)
 
 ProductWeight (StringWeight< Label, GallicStringType(G)>w1, Ww2)
 
ProductWeight Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
- Public Member Functions inherited from fst::PairWeight< StringWeight< Label, GallicStringType(G)>, W >
 PairWeight ()
 
 PairWeight (StringWeight< Label, GallicStringType(G)>w1, Ww2)
 
std::istream & Read (std::istream &strm)
 
std::ostream & Write (std::ostream &strm) const
 
bool Member () const
 
size_t Hash () const
 
PairWeight< StringWeight< Label, GallicStringType(G)>, W > Quantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
const StringWeight< Label, GallicStringType(G)> & Value1 () const
 
const W & Value2 () const
 
void SetValue1 (const StringWeight< Label, GallicStringType(G)> &weight)
 
void SetValue2 (const W &weight)
 

Static Public Member Functions

static const GallicWeightZero ()
 
static const GallicWeightOne ()
 
static const GallicWeightNoWeight ()
 
static const string & Type ()
 
- Static Public Member Functions inherited from fst::ProductWeight< StringWeight< Label, GallicStringType(G)>, W >
static const ProductWeightZero ()
 
static const ProductWeightOne ()
 
static const ProductWeightNoWeight ()
 
static const string & Type ()
 
static constexpr uint64 Properties ()
 
- Static Public Member Functions inherited from fst::PairWeight< StringWeight< Label, GallicStringType(G)>, W >
static const PairWeight< StringWeight< Label, GallicStringType(G)>, W > & Zero ()
 
static const PairWeight< StringWeight< Label, GallicStringType(G)>, W > & One ()
 
static const PairWeight< StringWeight< Label, GallicStringType(G)>, W > & NoWeight ()
 

Detailed Description

template<class Label, class W, GallicType G = GALLIC_LEFT>
struct fst::GallicWeight< Label, W, G >

Definition at line 556 of file string-weight.h.

Member Typedef Documentation

template<class Label, class W, GallicType G = GALLIC_LEFT>
using fst::GallicWeight< Label, W, G >::ReverseWeight = GallicWeight<Label, typename W::ReverseWeight, ReverseGallicType(G)>

Definition at line 559 of file string-weight.h.

template<class Label, class W, GallicType G = GALLIC_LEFT>
using fst::GallicWeight< Label, W, G >::SW = StringWeight<Label, GallicStringType(G)>

Definition at line 560 of file string-weight.h.

Constructor & Destructor Documentation

template<class Label, class W, GallicType G = GALLIC_LEFT>
fst::GallicWeight< Label, W, G >::GallicWeight ( )
inline

Definition at line 564 of file string-weight.h.

template<class Label, class W, GallicType G = GALLIC_LEFT>
fst::GallicWeight< Label, W, G >::GallicWeight ( SW  w1,
w2 
)
inline

Definition at line 566 of file string-weight.h.

template<class Label, class W, GallicType G = GALLIC_LEFT>
fst::GallicWeight< Label, W, G >::GallicWeight ( const string &  s,
int *  nread = nullptr 
)
inlineexplicit

Definition at line 568 of file string-weight.h.

template<class Label, class W, GallicType G = GALLIC_LEFT>
fst::GallicWeight< Label, W, G >::GallicWeight ( const ProductWeight< SW, W > &  w)
inlineexplicit

Definition at line 571 of file string-weight.h.

Member Function Documentation

template<class Label, class W, GallicType G = GALLIC_LEFT>
static const GallicWeight& fst::GallicWeight< Label, W, G >::NoWeight ( )
inlinestatic

Definition at line 584 of file string-weight.h.

template<class Label, class W, GallicType G = GALLIC_LEFT>
static const GallicWeight& fst::GallicWeight< Label, W, G >::One ( )
inlinestatic

Definition at line 579 of file string-weight.h.

template<class Label, class W, GallicType G = GALLIC_LEFT>
GallicWeight fst::GallicWeight< Label, W, G >::Quantize ( float  delta = kDelta) const
inline

Definition at line 601 of file string-weight.h.

template<class Label, class W, GallicType G = GALLIC_LEFT>
ReverseWeight fst::GallicWeight< Label, W, G >::Reverse ( ) const
inline

Definition at line 605 of file string-weight.h.

template<class Label, class W, GallicType G = GALLIC_LEFT>
static const string& fst::GallicWeight< Label, W, G >::Type ( )
inlinestatic

Definition at line 589 of file string-weight.h.

template<class Label, class W, GallicType G = GALLIC_LEFT>
static const GallicWeight& fst::GallicWeight< Label, W, G >::Zero ( )
inlinestatic

Definition at line 574 of file string-weight.h.


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