Home | History | Annotate | Download | only in fst

Lines Matching refs:Fst

28 #include <fst/compat.h>
31 #include <fst/util.h>
32 #include <fst/generic-register.h>
35 #include <fst/types.h>
37 namespace fst {
39 template <class A> class Fst;
45 typedef Fst<A> *(*Reader)(istream &strm, const FstReadOptions &opts);
46 typedef Fst<A> *(*Converter)(const Fst<A> &fst);
55 // an FST type, and its reader and converter.
77 return legal_type + "-fst.so";
82 // This class registers an Fst type for generic reading and creating.
83 // The Fst type must have a default constructor and a copy constructor
84 // from 'Fst<Arc>' for this to work.
106 static Fst<Arc> *Convert(const Fst<Arc> &fst) { return new F(fst); }
112 static fst::FstRegisterer< F<A> > F ## _ ## A ## _registerer
115 // Converts an fst to type 'type'.
117 Fst<A> *Convert(const Fst<A> &fst, const string &ftype) {
123 LOG(ERROR) << "Fst::Convert: Unknown FST type \"" << ftype
127 return converter(fst);
130 } // namespace fst