FST  openfst-1.8.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_t Properties () const override
 
uint64_t Properties (uint64_t 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 &impl)
 
FstImploperator= (FstImpl &&impl) noexcept
 
const std::string & Type () const
 
void SetType (std::string_view type)
 
void SetProperties (uint64_t props)
 
void SetProperties (uint64_t props, uint64_t mask)
 
void SetProperties (uint64_t props, uint64_t mask) const
 
void UpdateProperties (uint64_t props, uint64_t mask)
 
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, std::string_view type, uint64_t properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< A > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr, size_t header_offset)
 
- Protected Attributes inherited from fst::internal::FstImpl< A >
std::atomic< uint64_t > properties_
 

Detailed Description

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

Definition at line 63 of file rational.h.

Member Typedef Documentation

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

Definition at line 65 of file rational.h.

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

Definition at line 66 of file rational.h.

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

Definition at line 67 of file rational.h.

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

Definition at line 68 of file rational.h.

Constructor & Destructor Documentation

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

Definition at line 76 of file rational.h.

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

Definition at line 82 of file rational.h.

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

Definition at line 95 of file rational.h.

Member Function Documentation

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

Definition at line 230 of file rational.h.

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

Definition at line 209 of file rational.h.

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

Definition at line 192 of file rational.h.

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

Definition at line 101 of file rational.h.

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

Definition at line 165 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 143 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 122 of file rational.h.

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

Definition at line 103 of file rational.h.

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

Definition at line 105 of file rational.h.

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

Definition at line 107 of file rational.h.

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

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

Definition at line 111 of file rational.h.

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

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

Definition at line 114 of file rational.h.

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

Definition at line 240 of file rational.h.

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

Definition at line 99 of file rational.h.


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