Home | History | Annotate | Download | only in lib

Lines Matching refs:Fst

0 // fst-register.h
28 #include "fst/lib/compat.h"
34 namespace fst {
36 template <class A> class Fst;
39 // This class holds the mapping from Fst name string to its reader
44 typedef Fst<A> *(*Reader)(istream &strm, const FstReadOptions &opts);
45 typedef Fst<A> *(*Converter)(const Fst<A> &fst);
91 string so_file = type + "-fst.so";
125 // This class registers an Fst type for generic reading and creating.
126 // The Fst type must have a default constructor and a copy constructor
127 // from 'Fst<Arc>' for this to work.
136 F fst;
143 registr->SetEntry(fst.Type(), entry);
147 static Fst<Arc> *Convert(const Fst<Arc> &fst) { return new F(fst); }
153 static fst::FstRegisterer< F<A> > F ## _ ## A ## _registerer
156 // Converts an fst to type 'type'.
158 Fst<A> *Convert(const Fst<A> &fst, const string &ftype) {
164 LOG(ERROR) << "Fst::Convert: Unknown FST type \"" << ftype
168 return converter(fst);
171 } // namespace fst;