FST  openfst-1.6.9
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::MutableFst< A > Class Template Referenceabstract

#include <fst-decl.h>

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

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ExpandedFst< A >
using Arc = A
 
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

virtual MutableFst< Arc > & operator= (const Fst< Arc > &fst)=0
 
MutableFst< Arc > & operator= (const MutableFst< Arc > &fst)
 
virtual void SetStart (StateId)=0
 
virtual void SetFinal (StateId, Weight)=0
 
virtual void SetProperties (uint64 props, uint64 mask)=0
 
virtual StateId AddState ()=0
 
virtual void AddArc (StateId, const Arc &arc)=0
 
virtual void DeleteStates (const std::vector< StateId > &)=0
 
virtual void DeleteStates ()=0
 
virtual void DeleteArcs (StateId, size_t n)=0
 
virtual void DeleteArcs (StateId)=0
 
virtual void ReserveStates (StateId n)
 
virtual void ReserveArcs (StateId s, size_t n)
 
const SymbolTableInputSymbols () const override=0
 
const SymbolTableOutputSymbols () const override=0
 
virtual SymbolTableMutableInputSymbols ()=0
 
virtual SymbolTableMutableOutputSymbols ()=0
 
virtual void SetInputSymbols (const SymbolTable *isyms)=0
 
virtual void SetOutputSymbols (const SymbolTable *osyms)=0
 
MutableFst< A > * Copy (bool safe=false) const override=0
 
virtual void InitMutableArcIterator (StateId s, MutableArcIteratorData< Arc > *data)=0
 
- Public Member Functions inherited from fst::ExpandedFst< A >
virtual StateId NumStates () const =0
 
- Public Member Functions inherited from fst::Fst< A >
virtual ~Fst ()
 
virtual StateId Start () const =0
 
virtual Weight Final (StateId) const =0
 
virtual size_t NumArcs (StateId) const =0
 
virtual size_t NumInputEpsilons (StateId) const =0
 
virtual size_t NumOutputEpsilons (StateId) const =0
 
virtual uint64 Properties (uint64 mask, bool test) const =0
 
virtual const string & Type () const =0
 
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
 

Static Public Member Functions

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< A >
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)
 

Additional Inherited Members

- Protected Member Functions inherited from fst::Fst< A >
bool WriteFile (const string &filename) const
 

Detailed Description

template<class A>
class fst::MutableFst< A >

Definition at line 81 of file fst-decl.h.

Member Typedef Documentation

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

Definition at line 34 of file mutable-fst.h.

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

Definition at line 35 of file mutable-fst.h.

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

Definition at line 36 of file mutable-fst.h.

Member Function Documentation

template<class A>
virtual void fst::MutableFst< A >::AddArc ( StateId  ,
const Arc arc 
)
pure virtual
template<class A>
virtual StateId fst::MutableFst< A >::AddState ( )
pure virtual
template<class A>
MutableFst<A>* fst::MutableFst< A >::Copy ( bool  safe = false) const
overridepure virtual
template<class A>
virtual void fst::MutableFst< A >::DeleteArcs ( StateId  ,
size_t  n 
)
pure virtual
template<class A>
virtual void fst::MutableFst< A >::DeleteArcs ( StateId  )
pure virtual
template<class A>
virtual void fst::MutableFst< A >::DeleteStates ( const std::vector< StateId > &  )
pure virtual
template<class A>
virtual void fst::MutableFst< A >::DeleteStates ( )
pure virtual
template<class A>
virtual void fst::MutableFst< A >::InitMutableArcIterator ( StateId  s,
MutableArcIteratorData< Arc > *  data 
)
pure virtual
template<class A>
const SymbolTable* fst::MutableFst< A >::InputSymbols ( ) const
overridepure virtual
template<class A>
virtual SymbolTable* fst::MutableFst< A >::MutableInputSymbols ( )
pure virtual
template<class A>
virtual SymbolTable* fst::MutableFst< A >::MutableOutputSymbols ( )
pure virtual
template<class A>
virtual MutableFst<Arc>& fst::MutableFst< A >::operator= ( const Fst< Arc > &  fst)
pure virtual
template<class A>
MutableFst<Arc>& fst::MutableFst< A >::operator= ( const MutableFst< Arc > &  fst)
inline

Definition at line 40 of file mutable-fst.h.

template<class A>
const SymbolTable* fst::MutableFst< A >::OutputSymbols ( ) const
overridepure virtual
template<class A>
static MutableFst<Arc>* fst::MutableFst< A >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
inlinestatic

Definition at line 99 of file mutable-fst.h.

template<class A>
static MutableFst<Arc>* fst::MutableFst< A >::Read ( const string &  filename,
bool  convert = false,
const string &  convert_type = "vector" 
)
inlinestatic

Definition at line 128 of file mutable-fst.h.

template<class A>
virtual void fst::MutableFst< A >::ReserveArcs ( StateId  s,
size_t  n 
)
inlinevirtual
template<class A>
virtual void fst::MutableFst< A >::ReserveStates ( StateId  n)
inlinevirtual
template<class A>
virtual void fst::MutableFst< A >::SetFinal ( StateId  ,
Weight   
)
pure virtual
template<class A>
virtual void fst::MutableFst< A >::SetInputSymbols ( const SymbolTable isyms)
pure virtual
template<class A>
virtual void fst::MutableFst< A >::SetOutputSymbols ( const SymbolTable osyms)
pure virtual
template<class A>
virtual void fst::MutableFst< A >::SetProperties ( uint64  props,
uint64  mask 
)
pure virtual
template<class A>
virtual void fst::MutableFst< A >::SetStart ( StateId  )
pure virtual

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