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

#include <string-weight.h>

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

Public Types

using GW = GallicWeight< Label, W, GALLIC_RESTRICT >
 
using SW = StringWeight< Label, GallicStringType(GALLIC_RESTRICT)>
 
using SI = StringWeightIterator< SW >
 
using UW = UnionWeight< GW, GallicUnionWeightOptions< Label, W >>
 
using UI = UnionWeightIterator< GW, GallicUnionWeightOptions< Label, W >>
 
using ReverseWeight = GallicWeight< Label, W, GALLIC >
 
- Public Types inherited from fst::UnionWeight< GallicWeight< Label, W, GALLIC_RESTRICT >, GallicUnionWeightOptions< Label, W > >
using Weight = GallicWeight< Label, W, GALLIC_RESTRICT >
 
using Compare = typename GallicUnionWeightOptions< Label, W >::Compare
 
using Merge = typename GallicUnionWeightOptions< Label, W >::Merge
 
using ReverseWeight = UnionWeight< typename GallicWeight< Label, W, GALLIC_RESTRICT >::ReverseWeight, typename GallicUnionWeightOptions< Label, W >::ReverseOptions >
 

Public Member Functions

 GallicWeight ()=default
 
 GallicWeight (const UW &weight)
 
 GallicWeight (const GW &weight)
 
 GallicWeight (SW w1, W w2)
 
 GallicWeight (std::string_view str, int *nread=nullptr)
 
GallicWeight< Label, W, GALLICQuantize (float delta=kDelta) const
 
ReverseWeight Reverse () const
 
- Public Member Functions inherited from fst::UnionWeight< GallicWeight< Label, W, GALLIC_RESTRICT >, GallicUnionWeightOptions< Label, W > >
 UnionWeight ()
 
 UnionWeight (GallicWeight< Label, W, GALLIC_RESTRICT >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 GallicWeight< Label, W, GALLIC_RESTRICT > & Back () const
 
void PushBack (GallicWeight< Label, W, GALLIC_RESTRICT >weight, bool srt)
 
void Sort ()
 

Static Public Member Functions

static const GallicWeight< Label, W, GALLIC > & Zero ()
 
static const GallicWeight< Label, W, GALLIC > & One ()
 
static const GallicWeight< Label, W, GALLIC > & NoWeight ()
 
static const std::string & Type ()
 
- Static Public Member Functions inherited from fst::UnionWeight< GallicWeight< Label, W, GALLIC_RESTRICT >, GallicUnionWeightOptions< Label, W > >
static const UnionWeightZero ()
 
static const UnionWeightOne ()
 
static const UnionWeightNoWeight ()
 
static const std::string & Type ()
 
static constexpr uint64_t Properties ()
 

Detailed Description

template<class Label, class W>
struct fst::GallicWeight< Label, W, GALLIC >

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

Member Typedef Documentation

template<class Label , class W >
using fst::GallicWeight< Label, W, GALLIC >::GW = GallicWeight<Label, W, GALLIC_RESTRICT>

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

template<class Label , class W >
using fst::GallicWeight< Label, W, GALLIC >::ReverseWeight = GallicWeight<Label, W, GALLIC>

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

template<class Label , class W >
using fst::GallicWeight< Label, W, GALLIC >::SI = StringWeightIterator<SW>

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

template<class Label , class W >
using fst::GallicWeight< Label, W, GALLIC >::SW = StringWeight<Label, GallicStringType(GALLIC_RESTRICT)>

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

template<class Label , class W >
using fst::GallicWeight< Label, W, GALLIC >::UI = UnionWeightIterator<GW, GallicUnionWeightOptions<Label, W>>

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

template<class Label , class W >
using fst::GallicWeight< Label, W, GALLIC >::UW = UnionWeight<GW, GallicUnionWeightOptions<Label, W>>

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

Constructor & Destructor Documentation

template<class Label , class W >
fst::GallicWeight< Label, W, GALLIC >::GallicWeight ( )
default
template<class Label , class W >
fst::GallicWeight< Label, W, GALLIC >::GallicWeight ( const UW weight)
inline

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

template<class Label , class W >
fst::GallicWeight< Label, W, GALLIC >::GallicWeight ( const GW weight)
inlineexplicit

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

template<class Label , class W >
fst::GallicWeight< Label, W, GALLIC >::GallicWeight ( SW  w1,
w2 
)
inline

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

template<class Label , class W >
fst::GallicWeight< Label, W, GALLIC >::GallicWeight ( std::string_view  str,
int *  nread = nullptr 
)
inlineexplicit

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

Member Function Documentation

template<class Label , class W >
static const GallicWeight<Label, W, GALLIC>& fst::GallicWeight< Label, W, GALLIC >::NoWeight ( )
inlinestatic

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

template<class Label , class W >
static const GallicWeight<Label, W, GALLIC>& fst::GallicWeight< Label, W, GALLIC >::One ( )
inlinestatic

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

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

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

template<class Label , class W >
ReverseWeight fst::GallicWeight< Label, W, GALLIC >::Reverse ( ) const
inline

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

template<class Label , class W >
static const std::string& fst::GallicWeight< Label, W, GALLIC >::Type ( )
inlinestatic

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

template<class Label , class W >
static const GallicWeight<Label, W, GALLIC>& fst::GallicWeight< Label, W, GALLIC >::Zero ( )
inlinestatic

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


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