FST  openfst-1.8.1
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 &fst, bool safe=false)
 
 ~EditFst () override
 
EditFstCopy (bool safe=false) const override
 
EditFstoperator= (const EditFst &fst)
 
EditFstoperator= (const Fst< Arc > &fst) override
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const override
 
bool Write (const std::string &source) 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=Weight::One()) override
 
void SetProperties (uint64 props, uint64 mask) override
 
StateId AddState () override
 
void AddStates (size_t n) override
 
void AddArc (StateId s, const Arc &arc) override
 
void AddArc (StateId s, 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 (size_t n) 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 std::string & Type () const override
 
- Public Member Functions inherited from fst::MutableFst< typename internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc >
MutableFstoperator= (const MutableFst &fst)
 
- Public Member Functions inherited from fst::Fst< A >
virtual ~Fst ()
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Static Public Member Functions

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

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 &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 &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 &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst &fst)
 
 ImplToFst (ImplToFst &&fst) noexcept
 
ImplToFstoperator= (const ImplToFst &fst)
 
ImplToFstoperator= (ImplToFst &&fst) noexcept
 
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 std::string &source) 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 std::string &source)
 

Detailed Description

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

Definition at line 639 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 642 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 645 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 643 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 649 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 651 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 654 of file edit-fst.h.

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

Definition at line 658 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 661 of file edit-fst.h.

Member Function Documentation

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
EditFst* 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 703 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 699 of file edit-fst.h.

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

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

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

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

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

Definition at line 686 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 691 of file edit-fst.h.

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

Reimplemented from fst::Fst< A >.

Definition at line 695 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 647 of file edit-fst.h.


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