FST  openfst-1.7.2
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< Arc, StateTable, CacheStore > &fst, bool safe=false)
 
ReplaceFst< Arc, StateTable, 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
 
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 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::ReplaceFstImpl< A, T, 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
 

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 Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 
- 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< internal::ReplaceFstImpl< A, T, CacheStore >, Fst< typename internal::ReplaceFstImpl< A, T, CacheStore >::Arc > > &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst< internal::ReplaceFstImpl< A, T, CacheStore >, Fst< typename internal::ReplaceFstImpl< A, T, CacheStore >::Arc > > &fst)
 
 ImplToFst (ImplToFst< internal::ReplaceFstImpl< A, T, CacheStore >, Fst< typename internal::ReplaceFstImpl< A, T, CacheStore >::Arc > > &&fst) noexcept
 
ImplToFst< internal::ReplaceFstImpl< A, T, CacheStore >, Fst< typename internal::ReplaceFstImpl< A, T, CacheStore >::Arc > > & operator= (const ImplToFst< internal::ReplaceFstImpl< A, T, CacheStore >, Fst< typename internal::ReplaceFstImpl< A, T, CacheStore >::Arc > > &fst)
 
ImplToFst< internal::ReplaceFstImpl< A, T, CacheStore >, Fst< typename internal::ReplaceFstImpl< A, T, CacheStore >::Arc > > & operator= (ImplToFst< internal::ReplaceFstImpl< A, T, CacheStore >, Fst< typename internal::ReplaceFstImpl< A, T, CacheStore >::Arc > > &&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 string &filename) const
 

Detailed Description

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

Definition at line 132 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 951 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 960 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 959 of file replace.h.

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

Definition at line 952 of file replace.h.

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

Definition at line 958 of file replace.h.

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

Definition at line 953 of file replace.h.

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

Definition at line 956 of file replace.h.

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

Definition at line 957 of file replace.h.

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

Definition at line 954 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 968 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 973 of file replace.h.

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

Definition at line 978 of file replace.h.

Member Function Documentation

template<class A, class T, class CacheStore>
ReplaceFst<Arc, StateTable, CacheStore>* 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 1006 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 1012 of file replace.h.

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

Definition at line 1008 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 990 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 1436 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 964 of file replace.h.

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

Definition at line 966 of file replace.h.

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

Definition at line 965 of file replace.h.


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