Lines Matching refs:MatcherFst
65 // Default MatcherFst initializer - does nothing.
78 class MatcherFst
84 friend class StateIterator< MatcherFst<F, M, N, I> >;
85 friend class ArcIterator< MatcherFst<F, M, N, I> >;
94 MatcherFst() : ImplToExpandedFst<Impl>(new Impl(F(), N)) {}
96 explicit MatcherFst(const F &fst)
99 explicit MatcherFst(const Fst<Arc> &fst)
103 MatcherFst(const MatcherFst<F, M, N, I> &fst, bool safe = false)
106 // Get a copy of this MatcherFst. See Fst<>::Copy() for further doc.
107 virtual MatcherFst<F, M, N, I> *Copy(bool safe = false) const {
108 return new MatcherFst<F, M, N, I>(*this, safe);
111 // Read a MatcherFst from an input stream; return NULL on error
112 static MatcherFst<F, M, N, I> *Read(istream &strm,
115 return impl ? new MatcherFst<F, M, N, I>(impl) : 0;
118 // Read a MatcherFst from a file; return NULL on error
120 static MatcherFst<F, M, N, I> *Read(const string &filename) {
122 return impl ? new MatcherFst<F, M, N, I>(impl) : 0;
145 // Allows access to MatcherFst components.
174 explicit MatcherFst(Impl *impl) : ImplToExpandedFst<Impl>(impl) {}
181 void operator=(const MatcherFst<F, M, N, I> &fst); // disallow
185 // Specialization fo MatcherFst.
187 class StateIterator< MatcherFst<F, M, N, I> > : public StateIterator<F> {
189 explicit StateIterator(const MatcherFst<F, M, N, I> &fst) :
194 // Specialization for MatcherFst.
196 class ArcIterator< MatcherFst<F, M, N, I> > : public ArcIterator<F> {
198 ArcIterator(const MatcherFst<F, M, N, I> &fst, typename F::Arc::StateId s)
203 // Specialization for MatcherFst
205 class Matcher< MatcherFst<F, M, N, I> > {
207 typedef MatcherFst<F, M, N, I> FST;
242 // Specialization for MatcherFst
244 class LookAheadMatcher< MatcherFst<F, M, N, I> > {
246 typedef MatcherFst<F, M, N, I> FST;
309 typedef MatcherFst<ConstFst<StdArc>,
313 typedef MatcherFst<ConstFst<LogArc>,
329 typedef MatcherFst<ConstFst<StdArc>,
336 typedef MatcherFst<ConstFst<LogArc>,
343 typedef MatcherFst<ConstFst<StdArc>,
350 typedef MatcherFst<ConstFst<LogArc>,