FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Friends | List of all members
fst::FactorWeightFst< A, FactorIterator > Class Template Reference

#include <factor-weight.h>

Inheritance diagram for fst::FactorWeightFst< A, FactorIterator >:
Inheritance graph
[legend]
Collaboration diagram for fst::FactorWeightFst< A, FactorIterator >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = DefaultCacheStore< Arc >
 
using State = typename Store::State
 
using Impl = internal::FactorWeightFstImpl< Arc, FactorIterator >
 
- Public Types inherited from fst::ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator > >
using Arc = typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc >
using Arc = typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 FactorWeightFst (const Fst< Arc > &fst)
 
 FactorWeightFst (const Fst< Arc > &fst, const FactorWeightOptions< Arc > &opts)
 
 FactorWeightFst (const FactorWeightFst &fst, bool copy)
 
FactorWeightFstCopy (bool copy=false) const override
 
void InitStateIterator (StateIteratorData< Arc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator > >
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::FactorWeightFstImpl< A, FactorIterator >::Arc >
virtual ~Fst ()=default
 
virtual std::optional< StateIdNumStatesIfKnown () const
 
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
 

Friends

class ArcIterator< FactorWeightFst< Arc, FactorIterator > >
 
class StateIterator< FactorWeightFst< Arc, FactorIterator > >
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::Fst< typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc >
static FstRead (std::istream &strm, const FstReadOptions &opts)
 
static FstRead (const std::string &source)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator > >
 ImplToFst (std::shared_ptr< internal::FactorWeightFstImpl< A, FactorIterator > > 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 internal::FactorWeightFstImpl< A, FactorIterator > * GetImpl () const
 
internal::FactorWeightFstImpl< A, FactorIterator > * GetMutableImpl () const
 
std::shared_ptr< internal::FactorWeightFstImpl< A, FactorIterator > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::FactorWeightFstImpl< A, FactorIterator > > impl)
 
- Protected Member Functions inherited from fst::Fst< typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc >
bool WriteFile (const std::string &source) const
 

Detailed Description

template<class A, class FactorIterator>
class fst::FactorWeightFst< A, FactorIterator >

Definition at line 461 of file factor-weight.h.

Member Typedef Documentation

template<class A, class FactorIterator>
using fst::FactorWeightFst< A, FactorIterator >::Arc = A

Definition at line 464 of file factor-weight.h.

template<class A, class FactorIterator>
using fst::FactorWeightFst< A, FactorIterator >::Impl = internal::FactorWeightFstImpl<Arc, FactorIterator>

Definition at line 470 of file factor-weight.h.

template<class A, class FactorIterator>
using fst::FactorWeightFst< A, FactorIterator >::State = typename Store::State

Definition at line 469 of file factor-weight.h.

template<class A, class FactorIterator>
using fst::FactorWeightFst< A, FactorIterator >::StateId = typename Arc::StateId

Definition at line 465 of file factor-weight.h.

template<class A, class FactorIterator>
using fst::FactorWeightFst< A, FactorIterator >::Store = DefaultCacheStore<Arc>

Definition at line 468 of file factor-weight.h.

template<class A, class FactorIterator>
using fst::FactorWeightFst< A, FactorIterator >::Weight = typename Arc::Weight

Definition at line 466 of file factor-weight.h.

Constructor & Destructor Documentation

template<class A, class FactorIterator>
fst::FactorWeightFst< A, FactorIterator >::FactorWeightFst ( const Fst< Arc > &  fst)
inlineexplicit

Definition at line 475 of file factor-weight.h.

template<class A, class FactorIterator>
fst::FactorWeightFst< A, FactorIterator >::FactorWeightFst ( const Fst< Arc > &  fst,
const FactorWeightOptions< Arc > &  opts 
)
inline

Definition at line 479 of file factor-weight.h.

template<class A, class FactorIterator>
fst::FactorWeightFst< A, FactorIterator >::FactorWeightFst ( const FactorWeightFst< A, FactorIterator > &  fst,
bool  copy 
)
inline

Definition at line 483 of file factor-weight.h.

Member Function Documentation

template<class A, class FactorIterator>
FactorWeightFst* fst::FactorWeightFst< A, FactorIterator >::Copy ( bool  copy = false) const
inlineoverridevirtual
template<class A, class FactorIterator>
void fst::FactorWeightFst< A, FactorIterator >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inlineoverride

Definition at line 493 of file factor-weight.h.

template<class Arc , class FactorIterator >
void fst::FactorWeightFst< Arc, FactorIterator >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverride

Definition at line 529 of file factor-weight.h.

Friends And Related Function Documentation

template<class A, class FactorIterator>
friend class ArcIterator< FactorWeightFst< Arc, FactorIterator > >
friend

Definition at line 472 of file factor-weight.h.

template<class A, class FactorIterator>
friend class StateIterator< FactorWeightFst< Arc, FactorIterator > >
friend

Definition at line 473 of file factor-weight.h.


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