FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::StringCompactor< 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 = Label
 

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 StringCompactorRead (std::istream &strm)
 

Detailed Description

template<class A>
class fst::StringCompactor< A >

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

Member Typedef Documentation

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

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

template<class A >
using fst::StringCompactor< A >::Element = Label

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

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

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

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

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

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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