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

#include <compactors.h>

Public Types

using Arc = A
 
using Label = typename A::Label
 
using StateId = typename A::StateId
 
using Weight = typename A::Weight
 
using Element = ArcTpl< Weight >
 

Public Member Functions

Element Compact (StateId s, const A &arc) const
 
Arc Expand (StateId s, const Element &e, uint32_t f=kArcValueFlags) const
 
ssize_t Size () const
 
uint64_t Properties () const
 
bool Compatible (const Fst< A > &fst) const
 
bool Write (std::ostream &strm) const
 

Static Public Member Functions

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

Detailed Description

template<class A>
class fst::TrivialArcCompactor< A >

Definition at line 45 of file compactors.h.

Member Typedef Documentation

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

Definition at line 47 of file compactors.h.

template<class A >
using fst::TrivialArcCompactor< A >::Element = ArcTpl<Weight>

Definition at line 54 of file compactors.h.

template<class A >
using fst::TrivialArcCompactor< A >::Label = typename A::Label

Definition at line 48 of file compactors.h.

template<class A >
using fst::TrivialArcCompactor< A >::StateId = typename A::StateId

Definition at line 49 of file compactors.h.

template<class A >
using fst::TrivialArcCompactor< A >::Weight = typename A::Weight

Definition at line 50 of file compactors.h.

Member Function Documentation

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

Definition at line 58 of file compactors.h.

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

Definition at line 70 of file compactors.h.

template<class A >
Arc fst::TrivialArcCompactor< A >::Expand ( StateId  s,
const Element e,
uint32_t  f = kArcValueFlags 
) const
inline

Definition at line 62 of file compactors.h.

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

Definition at line 68 of file compactors.h.

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

Definition at line 80 of file compactors.h.

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

Definition at line 66 of file compactors.h.

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

Definition at line 72 of file compactors.h.

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

Definition at line 78 of file compactors.h.


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