FST  openfst-1.6.9
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
fst::EditFst< A, WrappedFstT, MutableFstT > Class Template Reference

#include <edit-fst.h>

Inheritance diagram for fst::EditFst< A, WrappedFstT, MutableFstT >:
Inheritance graph
[legend]
Collaboration diagram for fst::EditFst< A, WrappedFstT, MutableFstT >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using Impl = internal::EditFstImpl< Arc, WrappedFstT, MutableFstT >
 
- Public Types inherited from fst::ImplToMutableFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT > >
using Arc = typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ImplToExpandedFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > >
using Arc = typename MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ImplToFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > >
using Arc = typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc >
using Arc = typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ExpandedFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc >
using Arc = typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc
 
using StateId = typename Arc::StateId
 
- Public Types inherited from fst::Fst< A >
using Arc = A
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 EditFst ()
 
 EditFst (const Fst< Arc > &fst)
 
 EditFst (const WrappedFstT &fst)
 
 EditFst (const EditFst< Arc, WrappedFstT, MutableFstT > &fst, bool safe=false)
 
 ~EditFst () override
 
EditFst< Arc, WrappedFstT, MutableFstT > * Copy (bool safe=false) const override
 
EditFst< Arc, WrappedFstT, MutableFstT > & operator= (const EditFst< Arc, WrappedFstT, MutableFstT > &fst)
 
EditFst< Arc, WrappedFstT, MutableFstT > & operator= (const Fst< Arc > &fst) override
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const override
 
bool Write (const string &filename) const override
 
void InitStateIterator (StateIteratorData< Arc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override
 
void InitMutableArcIterator (StateId s, MutableArcIteratorData< A > *data) override
 
- Public Member Functions inherited from fst::ImplToMutableFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT > >
void SetStart (StateId s) override
 
void SetFinal (StateId s, Weight weight) override
 
void SetProperties (uint64 props, uint64 mask) override
 
StateId AddState () override
 
void AddArc (StateId s, const Arc &arc) override
 
void DeleteStates (const std::vector< StateId > &dstates) override
 
void DeleteStates () override
 
void DeleteArcs (StateId s, size_t n) override
 
void DeleteArcs (StateId s) override
 
void ReserveStates (StateId s) override
 
void ReserveArcs (StateId s, size_t n) override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
SymbolTableMutableInputSymbols () override
 
SymbolTableMutableOutputSymbols () override
 
void SetInputSymbols (const SymbolTable *isyms) override
 
void SetOutputSymbols (const SymbolTable *osyms) override
 
- Public Member Functions inherited from fst::ImplToExpandedFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > >
StateId NumStates () const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > >
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
 
- Public Member Functions inherited from fst::MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc >
MutableFst< Arc > & operator= (const MutableFst< Arc > &fst)
 
- Public Member Functions inherited from fst::Fst< A >
virtual ~Fst ()
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Static Public Member Functions

static EditFst< Arc, WrappedFstT, MutableFstT > * Read (std::istream &strm, const FstReadOptions &opts)
 
static EditFst< Arc, WrappedFstT, MutableFstT > * Read (const string &filename)
 
- Static Public Member Functions inherited from fst::MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc >
static MutableFst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static MutableFst< Arc > * Read (const string &filename, bool convert=false, const string &convert_type="vector")
 
- Static Public Member Functions inherited from fst::ExpandedFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc >
static ExpandedFst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static ExpandedFst< Arc > * Read (const string &filename)
 
- Static Public Member Functions inherited from fst::Fst< A >
static Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 

Friends

class MutableArcIterator< EditFst< Arc, WrappedFstT, MutableFstT > >
 

Additional Inherited Members

- Protected Member Functions inherited from fst::ImplToMutableFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT > >
 ImplToMutableFst (std::shared_ptr< internal::EditFstImpl< A, WrappedFstT, MutableFstT > > impl)
 
 ImplToMutableFst (const ImplToMutableFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > > &fst, bool safe)
 
void MutateCheck ()
 
- Protected Member Functions inherited from fst::ImplToExpandedFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > >
 ImplToExpandedFst (std::shared_ptr< internal::EditFstImpl< A, WrappedFstT, MutableFstT > > impl)
 
 ImplToExpandedFst (const ImplToExpandedFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > > &fst)
 
 ImplToExpandedFst (const ImplToExpandedFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > > &fst, bool safe)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > >
 ImplToFst (std::shared_ptr< internal::EditFstImpl< A, WrappedFstT, MutableFstT > > impl)
 
 ImplToFst (const ImplToFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > > &fst, bool safe)
 
const internal::EditFstImpl< A, WrappedFstT, MutableFstT > * GetImpl () const
 
internal::EditFstImpl< A, WrappedFstT, MutableFstT > * GetMutableImpl () const
 
std::shared_ptr< internal::EditFstImpl< A, WrappedFstT, MutableFstT > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::EditFstImpl< A, WrappedFstT, MutableFstT > > impl)
 
- Protected Member Functions inherited from fst::Fst< A >
bool WriteFile (const string &filename) const
 
- Static Protected Member Functions inherited from fst::ImplToExpandedFst< internal::EditFstImpl< A, WrappedFstT, MutableFstT >, MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc > >
static internal::EditFstImpl< A, WrappedFstT, MutableFstT > * Read (std::istream &strm, const FstReadOptions &opts)
 
static internal::EditFstImpl< A, WrappedFstT, MutableFstT > * Read (const string &filename)
 

Detailed Description

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
class fst::EditFst< A, WrappedFstT, MutableFstT >

Definition at line 613 of file edit-fst.h.

Member Typedef Documentation

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
using fst::EditFst< A, WrappedFstT, MutableFstT >::Arc = A

Definition at line 616 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
using fst::EditFst< A, WrappedFstT, MutableFstT >::Impl = internal::EditFstImpl<Arc, WrappedFstT, MutableFstT>

Definition at line 619 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
using fst::EditFst< A, WrappedFstT, MutableFstT >::StateId = typename Arc::StateId

Definition at line 617 of file edit-fst.h.

Constructor & Destructor Documentation

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
fst::EditFst< A, WrappedFstT, MutableFstT >::EditFst ( )
inline

Definition at line 623 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
fst::EditFst< A, WrappedFstT, MutableFstT >::EditFst ( const Fst< Arc > &  fst)
inlineexplicit

Definition at line 625 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
fst::EditFst< A, WrappedFstT, MutableFstT >::EditFst ( const WrappedFstT &  fst)
inlineexplicit

Definition at line 628 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
fst::EditFst< A, WrappedFstT, MutableFstT >::EditFst ( const EditFst< Arc, WrappedFstT, MutableFstT > &  fst,
bool  safe = false 
)
inline

Definition at line 632 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
fst::EditFst< A, WrappedFstT, MutableFstT >::~EditFst ( )
inlineoverride

Definition at line 635 of file edit-fst.h.

Member Function Documentation

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
EditFst<Arc, WrappedFstT, MutableFstT>* fst::EditFst< A, WrappedFstT, MutableFstT >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::EditFst< A, WrappedFstT, MutableFstT >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inlineoverridevirtual

Implements fst::Fst< A >.

Definition at line 683 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::EditFst< A, WrappedFstT, MutableFstT >::InitMutableArcIterator ( StateId  s,
MutableArcIteratorData< A > *  data 
)
inlineoverridevirtual
template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::EditFst< A, WrappedFstT, MutableFstT >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverridevirtual

Implements fst::Fst< A >.

Definition at line 679 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
EditFst<Arc, WrappedFstT, MutableFstT>& fst::EditFst< A, WrappedFstT, MutableFstT >::operator= ( const EditFst< Arc, WrappedFstT, MutableFstT > &  fst)
inline

Definition at line 643 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
EditFst<Arc, WrappedFstT, MutableFstT>& fst::EditFst< A, WrappedFstT, MutableFstT >::operator= ( const Fst< Arc > &  fst)
inlineoverridevirtual
template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
static EditFst<Arc, WrappedFstT, MutableFstT>* fst::EditFst< A, WrappedFstT, MutableFstT >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
inlinestatic

Definition at line 656 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
static EditFst<Arc, WrappedFstT, MutableFstT>* fst::EditFst< A, WrappedFstT, MutableFstT >::Read ( const string &  filename)
inlinestatic

Definition at line 664 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
bool fst::EditFst< A, WrappedFstT, MutableFstT >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inlineoverridevirtual

Reimplemented from fst::Fst< A >.

Definition at line 671 of file edit-fst.h.

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
bool fst::EditFst< A, WrappedFstT, MutableFstT >::Write ( const string &  filename) const
inlineoverridevirtual

Reimplemented from fst::Fst< A >.

Definition at line 675 of file edit-fst.h.

Friends And Related Function Documentation

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
friend class MutableArcIterator< EditFst< Arc, WrappedFstT, MutableFstT > >
friend

Definition at line 621 of file edit-fst.h.


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