FST  openfst-1.8.3
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 ()=default
 
 GallicWeight (SW w1, W w2)
 
 GallicWeight (std::string_view 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 ()=default
 
 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 ()=default
 
 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 std::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 std::string & Type ()
 
static constexpr uint64_t 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 578 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 581 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 582 of file string-weight.h.

Constructor & Destructor Documentation

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

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

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

Definition at line 590 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 593 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 606 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 601 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 623 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 627 of file string-weight.h.

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

Definition at line 611 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 596 of file string-weight.h.


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