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

#include <fst-decl.h>

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

Public Types

using Arc = A
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using StateTable = T
 
using Store = CacheStore
 
using State = typename CacheStore::State
 
using Impl = internal::ReplaceFstImpl< Arc, StateTable, CacheStore >
 
using CacheImpl = internal::CacheBaseImpl< State, CacheStore >
 
- Public Types inherited from fst::ImplToFst< internal::ReplaceFstImpl< A, T, CacheStore > >
using Arc = typename internal::ReplaceFstImpl< A, T, CacheStore >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::ReplaceFstImpl< A, T, CacheStore >::Arc >
using Arc = typename internal::ReplaceFstImpl< A, T, CacheStore >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 ReplaceFst (const std::vector< std::pair< Label, const Fst< Arc > * >> &fst_array, Label root)
 
 ReplaceFst (const std::vector< std::pair< Label, const Fst< Arc > * >> &fst_array, const ReplaceFstOptions< Arc, StateTable, CacheStore > &opts)
 
 ReplaceFst (const ReplaceFst &fst, bool safe=false)
 
ReplaceFstCopy (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
 
bool CyclicDependencies () const
 
const StateTableGetStateTable () const
 
const Fst< Arc > & GetFst (Label nonterminal) const
 
- Public Member Functions inherited from fst::ImplToFst< internal::ReplaceFstImpl< A, T, 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::ReplaceFstImpl< A, T, 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
 

Friends

class ArcIterator< ReplaceFst< Arc, StateTable, CacheStore > >
 
class StateIterator< ReplaceFst< Arc, StateTable, CacheStore > >
 
class ReplaceFstMatcher< Arc, StateTable, CacheStore >
 

Additional Inherited Members

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

Detailed Description

template<class A, class T, class CacheStore>
class fst::ReplaceFst< A, T, CacheStore >

Definition at line 163 of file fst-decl.h.

Member Typedef Documentation

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

Definition at line 996 of file replace.h.

template<class A, class T, class CacheStore>
using fst::ReplaceFst< A, T, CacheStore >::CacheImpl = internal::CacheBaseImpl<State, CacheStore>

Definition at line 1005 of file replace.h.

template<class A, class T, class CacheStore>
using fst::ReplaceFst< A, T, CacheStore >::Impl = internal::ReplaceFstImpl<Arc, StateTable, CacheStore>

Definition at line 1004 of file replace.h.

template<class A, class T, class CacheStore>
using fst::ReplaceFst< A, T, CacheStore >::Label = typename Arc::Label

Definition at line 997 of file replace.h.

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

Definition at line 1003 of file replace.h.

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

Definition at line 998 of file replace.h.

template<class A, class T, class CacheStore>
using fst::ReplaceFst< A, T, CacheStore >::StateTable = T

Definition at line 1001 of file replace.h.

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

Definition at line 1002 of file replace.h.

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

Definition at line 999 of file replace.h.

Constructor & Destructor Documentation

template<class A, class T, class CacheStore>
fst::ReplaceFst< A, T, CacheStore >::ReplaceFst ( const std::vector< std::pair< Label, const Fst< Arc > * >> &  fst_array,
Label  root 
)
inline

Definition at line 1013 of file replace.h.

template<class A, class T, class CacheStore>
fst::ReplaceFst< A, T, CacheStore >::ReplaceFst ( const std::vector< std::pair< Label, const Fst< Arc > * >> &  fst_array,
const ReplaceFstOptions< Arc, StateTable, CacheStore > &  opts 
)
inline

Definition at line 1018 of file replace.h.

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

Definition at line 1023 of file replace.h.

Member Function Documentation

template<class A, class T, class CacheStore>
ReplaceFst* fst::ReplaceFst< A, T, CacheStore >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A, class T, class CacheStore>
bool fst::ReplaceFst< A, T, CacheStore >::CyclicDependencies ( ) const
inline

Definition at line 1049 of file replace.h.

template<class A, class T, class CacheStore>
const Fst<Arc>& fst::ReplaceFst< A, T, CacheStore >::GetFst ( Label  nonterminal) const
inline

Definition at line 1055 of file replace.h.

template<class A, class T, class CacheStore>
const StateTable& fst::ReplaceFst< A, T, CacheStore >::GetStateTable ( ) const
inline

Definition at line 1051 of file replace.h.

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

Definition at line 1033 of file replace.h.

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

Definition at line 1476 of file replace.h.

Friends And Related Function Documentation

template<class A, class T, class CacheStore>
friend class ArcIterator< ReplaceFst< Arc, StateTable, CacheStore > >
friend

Definition at line 1009 of file replace.h.

template<class A, class T, class CacheStore>
friend class ReplaceFstMatcher< Arc, StateTable, CacheStore >
friend

Definition at line 1011 of file replace.h.

template<class A, class T, class CacheStore>
friend class StateIterator< ReplaceFst< Arc, StateTable, CacheStore > >
friend

Definition at line 1010 of file replace.h.


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