FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::UnweightedCompactor< 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< std::pair< Label, Label >, StateId >
 

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

template<class A>
class fst::UnweightedCompactor< A >

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

Member Typedef Documentation

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

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

template<class A >
using fst::UnweightedCompactor< A >::Element = std::pair<std::pair<Label, Label>, StateId>

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

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

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

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

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

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

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

Member Function Documentation

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

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

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

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

template<class A >
Arc fst::UnweightedCompactor< A >::Expand ( StateId  s,
const Element p,
uint8_t  flags = kArcValueFlags 
) const
inline

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

template<class A >
constexpr uint64_t fst::UnweightedCompactor< A >::Properties ( ) const
inline

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

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

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

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

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

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

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

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

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


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