FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::AcceptorCompactor< 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, Weight >, 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 AcceptorCompactorRead (std::istream &strm)
 

Detailed Description

template<class A>
class fst::AcceptorCompactor< A >

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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