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

#include <expand.h>

Inheritance diagram for fst::MPdtExpandFst< A >:
Inheritance graph
[legend]
Collaboration diagram for fst::MPdtExpandFst< 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 ParenStack = internal::MPdtStack< StackId, Label >
 
using Store = DefaultCacheStore< Arc >
 
using State = typename Store::State
 
using Impl = internal::MPdtExpandFstImpl< Arc >
 
- Public Types inherited from fst::ImplToFst< internal::MPdtExpandFstImpl< A > >
using Arc = typename internal::MPdtExpandFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::MPdtExpandFstImpl< A >::Arc >
using Arc = typename internal::MPdtExpandFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

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

Friends

class ArcIterator< MPdtExpandFst< Arc > >
 
class StateIterator< MPdtExpandFst< Arc > >
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::Fst< typename internal::MPdtExpandFstImpl< A >::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::MPdtExpandFstImpl< A > >
 ImplToFst (std::shared_ptr< internal::MPdtExpandFstImpl< A > > impl)
 
 ImplToFst (const ImplToFst< internal::MPdtExpandFstImpl< A >, Fst< typename internal::MPdtExpandFstImpl< A >::Arc > > &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst< internal::MPdtExpandFstImpl< A >, Fst< typename internal::MPdtExpandFstImpl< A >::Arc > > &fst)
 
 ImplToFst (ImplToFst< internal::MPdtExpandFstImpl< A >, Fst< typename internal::MPdtExpandFstImpl< A >::Arc > > &&fst) noexcept
 
ImplToFst< internal::MPdtExpandFstImpl< A >, Fst< typename internal::MPdtExpandFstImpl< A >::Arc > > & operator= (const ImplToFst< internal::MPdtExpandFstImpl< A >, Fst< typename internal::MPdtExpandFstImpl< A >::Arc > > &fst)
 
ImplToFst< internal::MPdtExpandFstImpl< A >, Fst< typename internal::MPdtExpandFstImpl< A >::Arc > > & operator= (ImplToFst< internal::MPdtExpandFstImpl< A >, Fst< typename internal::MPdtExpandFstImpl< A >::Arc > > &&fst) noexcept
 
const internal::MPdtExpandFstImpl< A > * GetImpl () const
 
internal::MPdtExpandFstImpl< A > * GetMutableImpl () const
 
std::shared_ptr< internal::MPdtExpandFstImpl< A > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::MPdtExpandFstImpl< A > > impl)
 
- Protected Member Functions inherited from fst::Fst< typename internal::MPdtExpandFstImpl< A >::Arc >
bool WriteFile (const string &filename) const
 

Detailed Description

template<class A>
class fst::MPdtExpandFst< A >

Definition at line 200 of file expand.h.

Member Typedef Documentation

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

Definition at line 202 of file expand.h.

template<class A>
using fst::MPdtExpandFst< A >::Impl = internal::MPdtExpandFstImpl<Arc>

Definition at line 211 of file expand.h.

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

Definition at line 203 of file expand.h.

template<class A>
using fst::MPdtExpandFst< A >::ParenStack = internal::MPdtStack<StackId, Label>

Definition at line 208 of file expand.h.

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

Definition at line 207 of file expand.h.

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

Definition at line 210 of file expand.h.

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

Definition at line 204 of file expand.h.

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

Definition at line 209 of file expand.h.

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

Definition at line 205 of file expand.h.

Constructor & Destructor Documentation

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

Definition at line 216 of file expand.h.

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

Definition at line 222 of file expand.h.

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

Definition at line 230 of file expand.h.

Member Function Documentation

template<class A>
MPdtExpandFst<Arc>* fst::MPdtExpandFst< A >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A>
const ParenStack& fst::MPdtExpandFst< A >::GetStack ( ) const
inline

Definition at line 244 of file expand.h.

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

Definition at line 246 of file expand.h.

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

Definition at line 240 of file expand.h.

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

Definition at line 280 of file expand.h.

Friends And Related Function Documentation

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

Definition at line 213 of file expand.h.

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

Definition at line 214 of file expand.h.


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