FST
openfst-1.8.4
OpenFst Library
|
#include <rational.h>
Public Types | |
using | Arc = A |
using | StateId = typename Arc::StateId |
using | Impl = I |
![]() | |
using | Impl = internal::RationalFstImpl< A > |
using | Arc = typename Impl::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
![]() | |
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 |
![]() | |
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 SymbolTable * | InputSymbols () const override |
const SymbolTable * | OutputSymbols () const override |
![]() | |
virtual | ~Fst ()=default |
virtual std::optional< StateId > | NumStatesIfKnown () const |
virtual Fst * | Copy (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) | |
![]() | |
ImplToFst (std::shared_ptr< Impl > impl) | |
ImplToFst (const ImplToFst &fst, bool safe) | |
ImplToFst ()=delete | |
ImplToFst (const ImplToFst &fst) | |
ImplToFst (ImplToFst &&fst) noexcept | |
ImplToFst & | operator= (const ImplToFst &fst) |
ImplToFst & | operator= (ImplToFst &&fst) noexcept |
const Impl * | GetImpl () const |
Impl * | GetMutableImpl () const |
std::shared_ptr< Impl > | GetSharedImpl () const |
bool | Unique () const |
void | SetImpl (std::shared_ptr< Impl > impl) |
![]() | |
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 Fst * | Read (std::istream &strm, const FstReadOptions &opts) |
static Fst * | Read (std::string_view source) |
Definition at line 51 of file rational.h.
using fst::RationalFst< A >::Arc = A |
Definition at line 277 of file rational.h.
using fst::ImplToFst< I, FST >::Impl = I |
Definition at line 43 of file impl-to-fst.h.
using fst::RationalFst< A >::StateId = typename Arc::StateId |
Definition at line 278 of file rational.h.
|
inlineexplicitprotected |
Definition at line 300 of file rational.h.
|
inlineprotected |
Definition at line 304 of file rational.h.
|
inlineoverride |
Definition at line 293 of file rational.h.
|
inlineoverride |
Definition at line 289 of file rational.h.
|
friend |
Definition at line 283 of file rational.h.
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 282 of file rational.h.
|
friend |