FST  openfst-1.7.2
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< Arc, FactorIterator > &fst, bool copy)
 
FactorWeightFst< Arc, FactorIterator > * Copy (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 Properties (uint64 mask, bool test) const override
 
const 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 ()
 
virtual bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
virtual bool Write (const string &filename) 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 Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator > >
 ImplToFst (std::shared_ptr< internal::FactorWeightFstImpl< A, FactorIterator > > impl)
 
 ImplToFst (const ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator >, Fst< typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc > > &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator >, Fst< typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc > > &fst)
 
 ImplToFst (ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator >, Fst< typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc > > &&fst) noexcept
 
ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator >, Fst< typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc > > & operator= (const ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator >, Fst< typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc > > &fst)
 
ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator >, Fst< typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc > > & operator= (ImplToFst< internal::FactorWeightFstImpl< A, FactorIterator >, Fst< typename internal::FactorWeightFstImpl< A, FactorIterator >::Arc > > &&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 string &filename) const
 

Detailed Description

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

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

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

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

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

Definition at line 426 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 435 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 439 of file factor-weight.h.

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

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

Member Function Documentation

template<class A, class FactorIterator>
FactorWeightFst<Arc, FactorIterator>* 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 453 of file factor-weight.h.

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

Definition at line 489 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 432 of file factor-weight.h.

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

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


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