FST  openfst-1.7.2
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::internal::RationalFstImpl< A > Class Template Reference

#include <rational.h>

Inheritance diagram for fst::internal::RationalFstImpl< A >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::RationalFstImpl< A >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::internal::FstImpl< A >
using StateId = typename A::StateId
 
using Weight = typename A::Weight
 

Public Member Functions

 RationalFstImpl (const RationalFstOptions &opts)
 
 RationalFstImpl (const RationalFstImpl< Arc > &impl)
 
 ~RationalFstImpl () override
 
StateId Start ()
 
Weight Final (StateId s)
 
size_t NumArcs (StateId s)
 
size_t NumInputEpsilons (StateId s)
 
size_t NumOutputEpsilons (StateId s)
 
uint64 Properties () const override
 
uint64 Properties (uint64 mask) const override
 
void InitUnion (const Fst< Arc > &fst1, const Fst< Arc > &fst2)
 
void InitConcat (const Fst< Arc > &fst1, const Fst< Arc > &fst2)
 
void InitClosure (const Fst< Arc > &fst, ClosureType closure_type)
 
void AddUnion (const Fst< Arc > &fst)
 
void AddConcat (const Fst< Arc > &fst, bool append)
 
void AddClosure (ClosureType closure_type)
 
ReplaceFst< Arc > * Replace () const
 
- Public Member Functions inherited from fst::internal::FstImpl< A >
 FstImpl ()
 
 FstImpl (const FstImpl< A > &impl)
 
 FstImpl (FstImpl< A > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl< A > &impl)
 
FstImploperator= (FstImpl< A > &&impl) noexcept
 
const string & Type () const
 
void SetType (const string &type)
 
void SetProperties (uint64 props)
 
void SetProperties (uint64 props, uint64 mask)
 
void SetProperties (uint64 props, uint64 mask) const
 
const SymbolTableInputSymbols () const
 
SymbolTableInputSymbols ()
 
const SymbolTableOutputSymbols () const
 
SymbolTableOutputSymbols ()
 
void SetInputSymbols (const SymbolTable *isyms)
 
void SetOutputSymbols (const SymbolTable *osyms)
 
bool ReadHeader (std::istream &strm, const FstReadOptions &opts, int min_version, FstHeader *hdr)
 
void WriteHeader (std::ostream &strm, const FstWriteOptions &opts, int version, FstHeader *hdr) const
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::internal::FstImpl< A >
static void WriteFstHeader (const Fst< A > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< A > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr, size_t header_offset)
 
- Protected Attributes inherited from fst::internal::FstImpl< A >
uint64 properties_
 

Detailed Description

template<class A>
class fst::internal::RationalFstImpl< A >

Definition at line 48 of file rational.h.

Member Typedef Documentation

template<class A>
using fst::internal::RationalFstImpl< A >::Arc = A

Definition at line 50 of file rational.h.

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

Definition at line 51 of file rational.h.

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

Definition at line 52 of file rational.h.

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

Definition at line 53 of file rational.h.

Constructor & Destructor Documentation

template<class A>
fst::internal::RationalFstImpl< A >::RationalFstImpl ( const RationalFstOptions opts)
inlineexplicit

Definition at line 61 of file rational.h.

template<class A>
fst::internal::RationalFstImpl< A >::RationalFstImpl ( const RationalFstImpl< Arc > &  impl)
inline

Definition at line 67 of file rational.h.

template<class A>
fst::internal::RationalFstImpl< A >::~RationalFstImpl ( )
inlineoverride

Definition at line 80 of file rational.h.

Member Function Documentation

template<class A>
void fst::internal::RationalFstImpl< A >::AddClosure ( ClosureType  closure_type)
inline

Definition at line 215 of file rational.h.

template<class A>
void fst::internal::RationalFstImpl< A >::AddConcat ( const Fst< Arc > &  fst,
bool  append 
)
inline

Definition at line 194 of file rational.h.

template<class A>
void fst::internal::RationalFstImpl< A >::AddUnion ( const Fst< Arc > &  fst)
inline

Definition at line 177 of file rational.h.

template<class A>
Weight fst::internal::RationalFstImpl< A >::Final ( StateId  s)
inline

Definition at line 86 of file rational.h.

template<class A>
void fst::internal::RationalFstImpl< A >::InitClosure ( const Fst< Arc > &  fst,
ClosureType  closure_type 
)
inline

Definition at line 150 of file rational.h.

template<class A>
void fst::internal::RationalFstImpl< A >::InitConcat ( const Fst< Arc > &  fst1,
const Fst< Arc > &  fst2 
)
inline

Definition at line 128 of file rational.h.

template<class A>
void fst::internal::RationalFstImpl< A >::InitUnion ( const Fst< Arc > &  fst1,
const Fst< Arc > &  fst2 
)
inline

Definition at line 107 of file rational.h.

template<class A>
size_t fst::internal::RationalFstImpl< A >::NumArcs ( StateId  s)
inline

Definition at line 88 of file rational.h.

template<class A>
size_t fst::internal::RationalFstImpl< A >::NumInputEpsilons ( StateId  s)
inline

Definition at line 90 of file rational.h.

template<class A>
size_t fst::internal::RationalFstImpl< A >::NumOutputEpsilons ( StateId  s)
inline

Definition at line 92 of file rational.h.

template<class A>
uint64 fst::internal::RationalFstImpl< A >::Properties ( ) const
inlineoverridevirtual

Reimplemented from fst::internal::FstImpl< A >.

Definition at line 96 of file rational.h.

template<class A>
uint64 fst::internal::RationalFstImpl< A >::Properties ( uint64  mask) const
inlineoverridevirtual

Reimplemented from fst::internal::FstImpl< A >.

Definition at line 99 of file rational.h.

template<class A>
ReplaceFst<Arc>* fst::internal::RationalFstImpl< A >::Replace ( ) const
inline

Definition at line 225 of file rational.h.

template<class A>
StateId fst::internal::RationalFstImpl< A >::Start ( )
inline

Definition at line 84 of file rational.h.


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