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

#include <expand.h>

Inheritance diagram for fst::PdtExpandFst< A >:
Inheritance graph
[legend]
Collaboration diagram for fst::PdtExpandFst< A >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using StackId = StateId
 
using Store = DefaultCacheStore< Arc >
 
using State = typename Store::State
 
using Impl = internal::PdtExpandFstImpl< Arc >
 
- Public Types inherited from fst::ImplToFst< internal::PdtExpandFstImpl< A > >
using Arc = typename internal::PdtExpandFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::PdtExpandFstImpl< A >::Arc >
using Arc = typename internal::PdtExpandFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 PdtExpandFst (const Fst< Arc > &fst, const std::vector< std::pair< Label, Label >> &parens)
 
 PdtExpandFst (const Fst< Arc > &fst, const std::vector< std::pair< Label, Label >> &parens, const PdtExpandFstOptions< Arc > &opts)
 
 PdtExpandFst (const PdtExpandFst< Arc > &fst, bool safe=false)
 
PdtExpandFst< Arc > * Copy (bool safe=false) const override
 
void InitStateIterator (StateIteratorData< Arc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override
 
const PdtStack< StackId, Label > & GetStack () const
 
const PdtStateTable< StateId, StackId > & GetStateTable () const
 
- Public Member Functions inherited from fst::ImplToFst< internal::PdtExpandFstImpl< A > >
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::PdtExpandFstImpl< A >::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
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Friends

class ArcIterator< PdtExpandFst< Arc > >
 
class StateIterator< PdtExpandFst< Arc > >
 

Additional Inherited Members

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

Detailed Description

template<class A>
class fst::PdtExpandFst< A >

Definition at line 231 of file expand.h.

Member Typedef Documentation

template<class A>
using fst::PdtExpandFst< A >::Arc = A

Definition at line 233 of file expand.h.

template<class A>
using fst::PdtExpandFst< A >::Impl = internal::PdtExpandFstImpl<Arc>

Definition at line 242 of file expand.h.

template<class A>
using fst::PdtExpandFst< A >::Label = typename Arc::Label

Definition at line 235 of file expand.h.

template<class A>
using fst::PdtExpandFst< A >::StackId = StateId

Definition at line 239 of file expand.h.

template<class A>
using fst::PdtExpandFst< A >::State = typename Store::State

Definition at line 241 of file expand.h.

template<class A>
using fst::PdtExpandFst< A >::StateId = typename Arc::StateId

Definition at line 236 of file expand.h.

template<class A>
using fst::PdtExpandFst< A >::Store = DefaultCacheStore<Arc>

Definition at line 240 of file expand.h.

template<class A>
using fst::PdtExpandFst< A >::Weight = typename Arc::Weight

Definition at line 237 of file expand.h.

Constructor & Destructor Documentation

template<class A>
fst::PdtExpandFst< A >::PdtExpandFst ( const Fst< Arc > &  fst,
const std::vector< std::pair< Label, Label >> &  parens 
)
inline

Definition at line 247 of file expand.h.

template<class A>
fst::PdtExpandFst< A >::PdtExpandFst ( const Fst< Arc > &  fst,
const std::vector< std::pair< Label, Label >> &  parens,
const PdtExpandFstOptions< Arc > &  opts 
)
inline

Definition at line 252 of file expand.h.

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

Definition at line 258 of file expand.h.

Member Function Documentation

template<class A>
PdtExpandFst<Arc>* fst::PdtExpandFst< A >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A>
const PdtStack<StackId, Label>& fst::PdtExpandFst< A >::GetStack ( ) const
inline

Definition at line 272 of file expand.h.

template<class A>
const PdtStateTable<StateId, StackId>& fst::PdtExpandFst< A >::GetStateTable ( ) const
inline

Definition at line 276 of file expand.h.

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

Definition at line 268 of file expand.h.

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

Definition at line 310 of file expand.h.

Friends And Related Function Documentation

template<class A>
friend class ArcIterator< PdtExpandFst< Arc > >
friend

Definition at line 244 of file expand.h.

template<class A>
friend class StateIterator< PdtExpandFst< Arc > >
friend

Definition at line 245 of file expand.h.


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