FST  openfst-1.8.3
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 &fst, bool safe=false)
 
ComposeFstCopy (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_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::ComposeFstImplBase< A, CacheStore >::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
 

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 &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst &fst)
 
 ImplToFst (ImplToFst &&fst) noexcept
 
ImplToFstoperator= (const ImplToFst &fst)
 
ImplToFstoperator= (ImplToFst &&fst) noexcept
 
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 std::string &source) 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 FstRead (std::istream &strm, const FstReadOptions &opts)
 
static FstRead (const std::string &source)
 

Detailed Description

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

Definition at line 575 of file compose.h.

Member Typedef Documentation

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

Definition at line 578 of file compose.h.

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

Definition at line 585 of file compose.h.

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

Definition at line 583 of file compose.h.

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

Definition at line 579 of file compose.h.

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

Definition at line 582 of file compose.h.

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

Definition at line 580 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 593 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 601 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 611 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 618 of file compose.h.

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

Definition at line 641 of file compose.h.

Member Function Documentation

template<class A, class CacheStore>
ComposeFst* 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 677 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 667 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 645 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 629 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 729 of file compose.h.

Friends And Related Function Documentation

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

Definition at line 587 of file compose.h.

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

Definition at line 590 of file compose.h.

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

Definition at line 588 of file compose.h.


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