Lines Matching refs:Fst
17 // Functions and classes to invert an Fst.
22 #include "fst/lib/map.h"
23 #include "fst/lib/mutable-fst.h"
25 namespace fst {
41 // Inverts the transduction corresponding to an FST by exchanging the
42 // FST's input and output labels. This version modifies its input.
49 void Invert(MutableFst<Arc> *fst) { Map(fst, InvertMapper<Arc>()); }
52 // Inverts the transduction corresponding to an FST by exchanging the
53 // FST's input and output labels. This version is a delayed Fst.
67 explicit InvertFst(const Fst<A> &fst) : MapFst<A, A, C>(fst, C()) {}
69 InvertFst(const InvertFst<A> &fst) : MapFst<A, A, C>(fst) {}
80 explicit StateIterator(const InvertFst<A> &fst)
81 : StateIterator< MapFst<A, A, InvertMapper<A> > >(fst) {}
90 ArcIterator(const InvertFst<A> &fst, typename A::StateId s)
91 : ArcIterator< MapFst<A, A, InvertMapper<A> > >(fst, s) {}
98 } // namespace fst