FST  openfst-1.7.1
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::WeightedStringCompactor< A > Class Template Reference

#include <compact-fst.h>

Public Types

using Arc = A
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Element = std::pair< Label, Weight >
 

Public Member Functions

Element Compact (StateId s, const Arc &arc) const
 
Arc Expand (StateId s, const Element &p, uint32 f=kArcValueFlags) const
 
constexpr ssize_t Size () const
 
constexpr uint64 Properties () const
 
bool Compatible (const Fst< Arc > &fst) const
 
bool Write (std::ostream &strm) const
 

Static Public Member Functions

static const string & Type ()
 
static WeightedStringCompactorRead (std::istream &strm)
 

Detailed Description

template<class A>
class fst::WeightedStringCompactor< A >

Definition at line 1372 of file compact-fst.h.

Member Typedef Documentation

template<class A >
using fst::WeightedStringCompactor< A >::Arc = A

Definition at line 1374 of file compact-fst.h.

template<class A >
using fst::WeightedStringCompactor< A >::Element = std::pair<Label, Weight>

Definition at line 1379 of file compact-fst.h.

template<class A >
using fst::WeightedStringCompactor< A >::Label = typename Arc::Label

Definition at line 1375 of file compact-fst.h.

template<class A >
using fst::WeightedStringCompactor< A >::StateId = typename Arc::StateId

Definition at line 1376 of file compact-fst.h.

template<class A >
using fst::WeightedStringCompactor< A >::Weight = typename Arc::Weight

Definition at line 1377 of file compact-fst.h.

Member Function Documentation

template<class A >
Element fst::WeightedStringCompactor< A >::Compact ( StateId  s,
const Arc arc 
) const
inline

Definition at line 1381 of file compact-fst.h.

template<class A >
bool fst::WeightedStringCompactor< A >::Compatible ( const Fst< Arc > &  fst) const
inline

Definition at line 1394 of file compact-fst.h.

template<class A >
Arc fst::WeightedStringCompactor< A >::Expand ( StateId  s,
const Element p,
uint32  f = kArcValueFlags 
) const
inline

Definition at line 1385 of file compact-fst.h.

template<class A >
constexpr uint64 fst::WeightedStringCompactor< A >::Properties ( ) const
inline

Definition at line 1392 of file compact-fst.h.

template<class A >
static WeightedStringCompactor* fst::WeightedStringCompactor< A >::Read ( std::istream &  strm)
inlinestatic

Definition at line 1406 of file compact-fst.h.

template<class A >
constexpr ssize_t fst::WeightedStringCompactor< A >::Size ( ) const
inline

Definition at line 1390 of file compact-fst.h.

template<class A >
static const string& fst::WeightedStringCompactor< A >::Type ( )
inlinestatic

Definition at line 1399 of file compact-fst.h.

template<class A >
bool fst::WeightedStringCompactor< A >::Write ( std::ostream &  strm) const
inline

Definition at line 1404 of file compact-fst.h.


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