FST  openfst-1.7.0
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT > Class Template Reference

#include <edit-fst.h>

Public Types

using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 EditFstData ()
 
 EditFstData (const EditFstData &other)
 
 ~EditFstData ()
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
StateId NumNewStates () const
 
StateId EditedStart () const
 
Weight Final (StateId s, const WrappedFstT *wrapped) const
 
size_t NumArcs (StateId s, const WrappedFstT *wrapped) const
 
size_t NumInputEpsilons (StateId s, const WrappedFstT *wrapped) const
 
size_t NumOutputEpsilons (StateId s, const WrappedFstT *wrapped) const
 
void SetEditedProperties (uint64 props, uint64 mask)
 
void SetStart (StateId s)
 
Weight SetFinal (StateId s, Weight w, const WrappedFstT *wrapped)
 
StateId AddState (StateId curr_num_states)
 
const Arc * AddArc (StateId s, const Arc &arc, const WrappedFstT *wrapped)
 
void DeleteStates ()
 
void DeleteArcs (StateId s, size_t n, const WrappedFstT *wrapped)
 
void DeleteArcs (StateId s, const WrappedFstT *wrapped)
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data, const WrappedFstT *wrapped) const
 
void InitMutableArcIterator (StateId s, MutableArcIteratorData< Arc > *data, const WrappedFstT *wrapped)
 
void PrintMap ()
 

Static Public Member Functions

static EditFstData< Arc, WrappedFstT, MutableFstT > * Read (std::istream &strm, const FstReadOptions &opts)
 

Detailed Description

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
class fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >

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

Member Typedef Documentation

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
using fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::StateId = typename Arc::StateId

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
using fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::Weight = typename Arc::Weight

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

Constructor & Destructor Documentation

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::EditFstData ( )
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::EditFstData ( const EditFstData< Arc, WrappedFstT, MutableFstT > &  other)
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::~EditFstData ( )
inline

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

Member Function Documentation

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
const Arc* fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::AddArc ( StateId  s,
const Arc &  arc,
const WrappedFstT *  wrapped 
)
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
StateId fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::AddState ( StateId  curr_num_states)
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
void fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::DeleteArcs ( StateId  s,
size_t  n,
const WrappedFstT *  wrapped 
)
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
void fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::DeleteArcs ( StateId  s,
const WrappedFstT *  wrapped 
)
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
void fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::DeleteStates ( )
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
StateId fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::EditedStart ( ) const
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
Weight fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::Final ( StateId  s,
const WrappedFstT *  wrapped 
) const
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
void fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data,
const WrappedFstT *  wrapped 
) const
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
void fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::InitMutableArcIterator ( StateId  s,
MutableArcIteratorData< Arc > *  data,
const WrappedFstT *  wrapped 
)
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
size_t fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::NumArcs ( StateId  s,
const WrappedFstT *  wrapped 
) const
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
size_t fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::NumInputEpsilons ( StateId  s,
const WrappedFstT *  wrapped 
) const
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
StateId fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::NumNewStates ( ) const
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
size_t fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::NumOutputEpsilons ( StateId  s,
const WrappedFstT *  wrapped 
) const
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
void fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::PrintMap ( )
inline

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

template<typename A , typename WrappedFstT , typename MutableFstT >
EditFstData< A, WrappedFstT, MutableFstT > * fst::internal::EditFstData< A, WrappedFstT, MutableFstT >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
static

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
void fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::SetEditedProperties ( uint64  props,
uint64  mask 
)
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
Weight fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::SetFinal ( StateId  s,
Weight  w,
const WrappedFstT *  wrapped 
)
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
void fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::SetStart ( StateId  s)
inline

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

template<typename Arc, typename WrappedFstT = ExpandedFst<Arc>, typename MutableFstT = VectorFst<Arc>>
bool fst::internal::EditFstData< Arc, WrappedFstT, MutableFstT >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inline

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


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