Lines Matching refs:EncodeMapper
205 template <class A> class EncodeMapper {
209 EncodeMapper(uint32 flags, EncodeType type) in EncodeMapper() function
213 EncodeMapper(const EncodeMapper& mapper) in EncodeMapper() function
220 EncodeMapper(const EncodeMapper& mapper, EncodeType type) in EncodeMapper() function
226 ~EncodeMapper() { in ~EncodeMapper()
290 static EncodeMapper<A> *Read(istream &strm, in Read()
294 return r ? new EncodeMapper(table->flags(), type, table) : 0; in Read()
297 static EncodeMapper<A> *Read(const string& filename, EncodeType type) { in Read()
312 explicit EncodeMapper(uint32 flags, EncodeType type, EncodeTable<A> *table) in EncodeMapper() function
314 void operator=(const EncodeMapper &); // Disallow.
320 void Encode(MutableFst<A> *fst, EncodeMapper<A>* mapper) { in Encode()
326 void Decode(MutableFst<A>* fst, const EncodeMapper<A>& mapper) { in Decode()
327 Map(fst, EncodeMapper<A>(mapper, DECODE)); in Decode()
339 class EncodeFst : public MapFst<A, A, EncodeMapper<A> > {
342 typedef EncodeMapper<A> C;
344 EncodeFst(const Fst<A> &fst, EncodeMapper<A>* encoder) in EncodeFst()
347 EncodeFst(const Fst<A> &fst, const EncodeMapper<A>& encoder) in EncodeFst()
364 class DecodeFst : public MapFst<A, A, EncodeMapper<A> > {
367 typedef EncodeMapper<A> C;
369 DecodeFst(const Fst<A> &fst, const EncodeMapper<A>& encoder) in DecodeFst()
371 EncodeMapper<A>(encoder, DECODE), in DecodeFst()
384 : public StateIterator< MapFst<A, A, EncodeMapper<A> > > {
387 : StateIterator< MapFst<A, A, EncodeMapper<A> > >(fst) {} in StateIterator()
394 : public ArcIterator< MapFst<A, A, EncodeMapper<A> > > {
397 : ArcIterator< MapFst<A, A, EncodeMapper<A> > >(fst, s) {} in ArcIterator()
404 : public StateIterator< MapFst<A, A, EncodeMapper<A> > > {
407 : StateIterator< MapFst<A, A, EncodeMapper<A> > >(fst) {} in StateIterator()
414 : public ArcIterator< MapFst<A, A, EncodeMapper<A> > > {
417 : ArcIterator< MapFst<A, A, EncodeMapper<A> > >(fst, s) {} in ArcIterator()