FST  openfst-1.8.4
OpenFst Library
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
fst::RationalFst< A > Class Template Reference

#include <rational.h>

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

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using Impl = I
 
- Public Types inherited from fst::ImplToFst< internal::RationalFstImpl< A > >
using Impl = internal::RationalFstImpl< A >
 
using Arc = typename Impl::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::RationalFstImpl< A >::Arc >
using Arc = typename internal::RationalFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

void InitStateIterator (StateIteratorData< Arc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::RationalFstImpl< A > >
StateId Start () const override
 
Weight Final (StateId s) const override
 
size_t NumArcs (StateId s) const override
 
size_t NumInputEpsilons (StateId s) const override
 
size_t NumOutputEpsilons (StateId s) const override
 
uint64_t Properties (uint64_t mask, bool test) const override
 
const std::string & Type () const override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
- Public Member Functions inherited from fst::Fst< typename internal::RationalFstImpl< A >::Arc >
virtual ~Fst ()=default
 
virtual std::optional< StateIdNumStatesIfKnown () const
 
virtual FstCopy (bool safe=false) const =0
 
virtual bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
virtual bool Write (const std::string &source) const
 
virtual void InitStateIterator (StateIteratorData< Arc > *data) const =0
 
virtual void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const =0
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Protected Member Functions

 RationalFst (const RationalFstOptions &opts=RationalFstOptions())
 
 RationalFst (const RationalFst &fst, bool safe=false)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::RationalFstImpl< A > >
 ImplToFst (std::shared_ptr< Impl > impl)
 
 ImplToFst (const ImplToFst &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst &fst)
 
 ImplToFst (ImplToFst &&fst) noexcept
 
ImplToFstoperator= (const ImplToFst &fst)
 
ImplToFstoperator= (ImplToFst &&fst) noexcept
 
const ImplGetImpl () const
 
ImplGetMutableImpl () const
 
std::shared_ptr< ImplGetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< Impl > impl)
 
- Protected Member Functions inherited from fst::Fst< typename internal::RationalFstImpl< A >::Arc >
bool WriteFile (const std::string &source) const
 

Friends

class StateIterator< RationalFst< Arc > >
 
class ArcIterator< RationalFst< Arc > >
 
void Union (RationalFst< Arc > *fst1, const Fst< Arc > &fst2)
 
void Concat (RationalFst< Arc > *fst1, const Fst< Arc > &fst2)
 
void Concat (const Fst< Arc > &fst1, RationalFst< Arc > *fst2)
 
void Closure (RationalFst< Arc > *fst, ClosureType closure_type)
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::Fst< typename internal::RationalFstImpl< A >::Arc >
static FstRead (std::istream &strm, const FstReadOptions &opts)
 
static FstRead (std::string_view source)
 

Detailed Description

template<class A>
class fst::RationalFst< A >

Definition at line 51 of file rational.h.

Member Typedef Documentation

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

Definition at line 277 of file rational.h.

template<class A>
using fst::ImplToFst< I, FST >::Impl = I

Definition at line 43 of file impl-to-fst.h.

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

Definition at line 278 of file rational.h.

Constructor & Destructor Documentation

template<class A>
fst::RationalFst< A >::RationalFst ( const RationalFstOptions opts = RationalFstOptions())
inlineexplicitprotected

Definition at line 300 of file rational.h.

template<class A>
fst::RationalFst< A >::RationalFst ( const RationalFst< A > &  fst,
bool  safe = false 
)
inlineprotected

Definition at line 304 of file rational.h.

Member Function Documentation

template<class A>
void fst::RationalFst< A >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inlineoverride

Definition at line 293 of file rational.h.

template<class A>
void fst::RationalFst< A >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverride

Definition at line 289 of file rational.h.

Friends And Related Function Documentation

template<class A>
friend class ArcIterator< RationalFst< Arc > >
friend

Definition at line 283 of file rational.h.

template<class A>
void Closure ( RationalFst< Arc > *  fst,
ClosureType  closure_type 
)
friend
template<class A>
void Concat ( RationalFst< Arc > *  fst1,
const Fst< Arc > &  fst2 
)
friend
template<class A>
void Concat ( const Fst< Arc > &  fst1,
RationalFst< Arc > *  fst2 
)
friend
template<class A>
friend class StateIterator< RationalFst< Arc > >
friend

Definition at line 282 of file rational.h.

template<class A>
void Union ( RationalFst< Arc > *  fst1,
const Fst< Arc > &  fst2 
)
friend

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