FST  openfst-1.6.9
OpenFst Library
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Friends | List of all members
fst::ComposeFst< A, CacheStore > Class Template Reference

#include <compose.h>

Inheritance diagram for fst::ComposeFst< A, CacheStore >:
Inheritance graph
[legend]
Collaboration diagram for fst::ComposeFst< A, CacheStore >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 ComposeFst (const Fst< Arc > &fst1, const Fst< Arc > &fst2, const CacheOptions &opts=CacheOptions())
 
template<class Matcher , class Filter , class StateTuple >
 ComposeFst (const Fst< Arc > &fst1, const Fst< Arc > &fst2, const ComposeFstOptions< Arc, Matcher, Filter, StateTuple > &opts)
 
template<class Matcher1 , class Matcher2 , class Filter , class StateTuple >
 ComposeFst (const typename Matcher1::FST &fst1, const typename Matcher2::FST &fst2, const ComposeFstImplOptions< Matcher1, Matcher2, Filter, StateTuple, CacheStore > &opts)
 
 ComposeFst (const ComposeFst< A, CacheStore > &fst, bool safe=false)
 
ComposeFst< A, CacheStore > * Copy (bool safe=false) const override
 
void InitStateIterator (StateIteratorData< Arc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override
 
MatcherBase< Arc > * InitMatcher (MatchType match_type) const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::ComposeFstImplBase< A, CacheStore > >
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::ComposeFstImplBase< A, CacheStore >::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
 

Protected Member Functions

 ComposeFst (std::shared_ptr< Impl > impl)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::ComposeFstImplBase< A, CacheStore > >
 ImplToFst (std::shared_ptr< internal::ComposeFstImplBase< A, CacheStore > > impl)
 
 ImplToFst (const ImplToFst< internal::ComposeFstImplBase< A, CacheStore >, Fst< typename internal::ComposeFstImplBase< A, CacheStore >::Arc > > &fst, bool safe)
 
const internal::ComposeFstImplBase< A, CacheStore > * GetImpl () const
 
internal::ComposeFstImplBase< A, CacheStore > * GetMutableImpl () const
 
std::shared_ptr< internal::ComposeFstImplBase< A, CacheStore > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::ComposeFstImplBase< A, CacheStore > > impl)
 
- Protected Member Functions inherited from fst::Fst< typename internal::ComposeFstImplBase< A, CacheStore >::Arc >
bool WriteFile (const string &filename) const
 

Static Protected Member Functions

template<class Matcher1 , class Matcher2 , class Filter , class StateTuple >
static std::shared_ptr< ImplCreateBase2 (const typename Matcher1::FST &fst1, const typename Matcher2::FST &fst2, const ComposeFstImplOptions< Matcher1, Matcher2, Filter, StateTuple, CacheStore > &opts)
 
template<class Matcher , class Filter , class StateTuple >
static std::shared_ptr< ImplCreateBase1 (const Fst< Arc > &fst1, const Fst< Arc > &fst2, const ComposeFstOptions< Arc, Matcher, Filter, StateTuple > &opts)
 
static std::shared_ptr< ImplCreateBase (const Fst< Arc > &fst1, const Fst< Arc > &fst2, const CacheOptions &opts)
 

Friends

class ArcIterator< ComposeFst< Arc, CacheStore > >
 
class StateIterator< ComposeFst< Arc, CacheStore > >
 
template<class , class , class >
class ComposeFstMatcher
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::Fst< typename internal::ComposeFstImplBase< A, CacheStore >::Arc >
static Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 

Detailed Description

template<class A, class CacheStore>
class fst::ComposeFst< A, CacheStore >

Definition at line 548 of file compose.h.

Member Typedef Documentation

template<class A, class CacheStore>
using fst::ComposeFst< A, CacheStore >::Arc = A

Definition at line 551 of file compose.h.

template<class A, class CacheStore>
using fst::ComposeFst< A, CacheStore >::Impl = internal::ComposeFstImplBase<A, CacheStore>

Definition at line 558 of file compose.h.

template<class A, class CacheStore>
using fst::ComposeFst< A, CacheStore >::State = typename CacheStore::State

Definition at line 556 of file compose.h.

template<class A, class CacheStore>
using fst::ComposeFst< A, CacheStore >::StateId = typename Arc::StateId

Definition at line 552 of file compose.h.

template<class A, class CacheStore>
using fst::ComposeFst< A, CacheStore >::Store = CacheStore

Definition at line 555 of file compose.h.

template<class A, class CacheStore>
using fst::ComposeFst< A, CacheStore >::Weight = typename Arc::Weight

Definition at line 553 of file compose.h.

Constructor & Destructor Documentation

template<class A, class CacheStore>
fst::ComposeFst< A, CacheStore >::ComposeFst ( const Fst< Arc > &  fst1,
const Fst< Arc > &  fst2,
const CacheOptions opts = CacheOptions() 
)
inline

Definition at line 565 of file compose.h.

template<class A, class CacheStore>
template<class Matcher , class Filter , class StateTuple >
fst::ComposeFst< A, CacheStore >::ComposeFst ( const Fst< Arc > &  fst1,
const Fst< Arc > &  fst2,
const ComposeFstOptions< Arc, Matcher, Filter, StateTuple > &  opts 
)
inline

Definition at line 573 of file compose.h.

template<class A, class CacheStore>
template<class Matcher1 , class Matcher2 , class Filter , class StateTuple >
fst::ComposeFst< A, CacheStore >::ComposeFst ( const typename Matcher1::FST &  fst1,
const typename Matcher2::FST &  fst2,
const ComposeFstImplOptions< Matcher1, Matcher2, Filter, StateTuple, CacheStore > &  opts 
)
inline

Definition at line 583 of file compose.h.

template<class A, class CacheStore>
fst::ComposeFst< A, CacheStore >::ComposeFst ( const ComposeFst< A, CacheStore > &  fst,
bool  safe = false 
)
inline

Definition at line 590 of file compose.h.

template<class A, class CacheStore>
fst::ComposeFst< A, CacheStore >::ComposeFst ( std::shared_ptr< Impl impl)
inlineexplicitprotected

Definition at line 613 of file compose.h.

Member Function Documentation

template<class A, class CacheStore>
ComposeFst<A, CacheStore>* fst::ComposeFst< A, CacheStore >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A, class CacheStore>
static std::shared_ptr<Impl> fst::ComposeFst< A, CacheStore >::CreateBase ( const Fst< Arc > &  fst1,
const Fst< Arc > &  fst2,
const CacheOptions opts 
)
inlinestaticprotected

Definition at line 649 of file compose.h.

template<class A, class CacheStore>
template<class Matcher , class Filter , class StateTuple >
static std::shared_ptr<Impl> fst::ComposeFst< A, CacheStore >::CreateBase1 ( const Fst< Arc > &  fst1,
const Fst< Arc > &  fst2,
const ComposeFstOptions< Arc, Matcher, Filter, StateTuple > &  opts 
)
inlinestaticprotected

Definition at line 639 of file compose.h.

template<class A, class CacheStore>
template<class Matcher1 , class Matcher2 , class Filter , class StateTuple >
static std::shared_ptr<Impl> fst::ComposeFst< A, CacheStore >::CreateBase2 ( const typename Matcher1::FST &  fst1,
const typename Matcher2::FST &  fst2,
const ComposeFstImplOptions< Matcher1, Matcher2, Filter, StateTuple, CacheStore > &  opts 
)
inlinestaticprotected

Definition at line 617 of file compose.h.

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

Definition at line 601 of file compose.h.

template<class A, class CacheStore>
MatcherBase<Arc>* fst::ComposeFst< A, CacheStore >::InitMatcher ( MatchType  match_type) const
inlineoverridevirtual
template<class Arc , class CacheStore >
void fst::ComposeFst< Arc, CacheStore >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverride

Definition at line 701 of file compose.h.

Friends And Related Function Documentation

template<class A, class CacheStore>
friend class ArcIterator< ComposeFst< Arc, CacheStore > >
friend

Definition at line 560 of file compose.h.

template<class A, class CacheStore>
template<class , class , class >
friend class ComposeFstMatcher
friend

Definition at line 562 of file compose.h.

template<class A, class CacheStore>
friend class StateIterator< ComposeFst< Arc, CacheStore > >
friend

Definition at line 561 of file compose.h.


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