FST
openfst-1.8.4
OpenFst Library
|
#include <string-weight.h>
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 > |
![]() | |
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, GALLIC > | Quantize (float delta=kDelta) const |
ReverseWeight | Reverse () const |
![]() | |
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 const UnionWeight & | Zero () |
static const UnionWeight & | One () |
static const UnionWeight & | NoWeight () |
static const std::string & | Type () |
static constexpr uint64_t | Properties () |
Definition at line 724 of file string-weight.h.
using fst::GallicWeight< Label, W, GALLIC >::GW = GallicWeight<Label, W, GALLIC_RESTRICT> |
Definition at line 727 of file string-weight.h.
using fst::GallicWeight< Label, W, GALLIC >::ReverseWeight = GallicWeight<Label, W, GALLIC> |
Definition at line 732 of file string-weight.h.
using fst::GallicWeight< Label, W, GALLIC >::SI = StringWeightIterator<SW> |
Definition at line 729 of file string-weight.h.
using fst::GallicWeight< Label, W, GALLIC >::SW = StringWeight<Label, GallicStringType(GALLIC_RESTRICT)> |
Definition at line 728 of file string-weight.h.
using fst::GallicWeight< Label, W, GALLIC >::UI = UnionWeightIterator<GW, GallicUnionWeightOptions<Label, W>> |
Definition at line 731 of file string-weight.h.
using fst::GallicWeight< Label, W, GALLIC >::UW = UnionWeight<GW, GallicUnionWeightOptions<Label, W>> |
Definition at line 730 of file string-weight.h.
|
default |
|
inline |
Definition at line 740 of file string-weight.h.
|
inlineexplicit |
Definition at line 745 of file string-weight.h.
|
inline |
Definition at line 747 of file string-weight.h.
|
inlineexplicit |
Definition at line 749 of file string-weight.h.
|
inlinestatic |
Definition at line 762 of file string-weight.h.
|
inlinestatic |
Definition at line 757 of file string-weight.h.
|
inline |
Definition at line 772 of file string-weight.h.
|
inline |
Definition at line 776 of file string-weight.h.
|
inlinestatic |
Definition at line 767 of file string-weight.h.
|
inlinestatic |
Definition at line 752 of file string-weight.h.