Lines Matching refs:mapper
112 void ArcMap(MutableFst<A> *fst, C* mapper) { in ArcMap() argument
116 if (mapper->InputSymbolsAction() == MAP_CLEAR_SYMBOLS) in ArcMap()
119 if (mapper->OutputSymbolsAction() == MAP_CLEAR_SYMBOLS) in ArcMap()
127 MapFinalAction final_action = mapper->FinalAction(); in ArcMap()
138 aiter.SetValue((*mapper)(arc)); in ArcMap()
144 A final_arc = (*mapper)(A(0, 0, fst->Final(s), kNoStateId)); in ArcMap()
155 A final_arc = (*mapper)(A(0, 0, fst->Final(s), kNoStateId)); in ArcMap()
173 A final_arc = (*mapper)(A(0, 0, fst->Final(s), kNoStateId)); in ArcMap()
184 fst->SetProperties(mapper->Properties(props), kFstProperties); in ArcMap()
191 void ArcMap(MutableFst<A> *fst, C mapper) { in ArcMap() argument
192 ArcMap(fst, &mapper); in ArcMap()
200 void ArcMap(const Fst<A> &ifst, MutableFst<B> *ofst, C* mapper) { in ArcMap() argument
206 if (mapper->InputSymbolsAction() == MAP_COPY_SYMBOLS) in ArcMap()
208 else if (mapper->InputSymbolsAction() == MAP_CLEAR_SYMBOLS) in ArcMap()
211 if (mapper->OutputSymbolsAction() == MAP_COPY_SYMBOLS) in ArcMap()
213 else if (mapper->OutputSymbolsAction() == MAP_CLEAR_SYMBOLS) in ArcMap()
223 MapFinalAction final_action = mapper->FinalAction(); in ArcMap()
245 ofst->AddArc(s, (*mapper)(aiter.Value())); in ArcMap()
250 B final_arc = (*mapper)(A(0, 0, ifst.Final(s), kNoStateId)); in ArcMap()
259 B final_arc = (*mapper)(A(0, 0, ifst.Final(s), kNoStateId)); in ArcMap()
275 B final_arc = (*mapper)(A(0, 0, ifst.Final(s), kNoStateId)); in ArcMap()
286 ofst->SetProperties(mapper->Properties(iprops) | oprops, kFstProperties); in ArcMap()
293 void ArcMap(const Fst<A> &ifst, MutableFst<B> *ofst, C mapper) { in ArcMap() argument
294 ArcMap(ifst, ofst, &mapper); in ArcMap()
332 ArcMapFstImpl(const Fst<A> &fst, const C &mapper, in ArcMapFstImpl() argument
336 mapper_(new C(mapper)), in ArcMapFstImpl()
343 ArcMapFstImpl(const Fst<A> &fst, C *mapper, in ArcMapFstImpl() argument
347 mapper_(mapper), in ArcMapFstImpl()
562 ArcMapFst(const Fst<A> &fst, const C &mapper, const ArcMapFstOptions& opts) in ArcMapFst() argument
563 : ImplToFst<Impl>(new Impl(fst, mapper, opts)) {} in ArcMapFst()
565 ArcMapFst(const Fst<A> &fst, C* mapper, const ArcMapFstOptions& opts) in ArcMapFst() argument
566 : ImplToFst<Impl>(new Impl(fst, mapper, opts)) {} in ArcMapFst()
568 ArcMapFst(const Fst<A> &fst, const C &mapper) in ArcMapFst() argument
569 : ImplToFst<Impl>(new Impl(fst, mapper, ArcMapFstOptions())) {} in ArcMapFst()
571 ArcMapFst(const Fst<A> &fst, C* mapper) in ArcMapFst() argument
572 : ImplToFst<Impl>(new Impl(fst, mapper, ArcMapFstOptions())) {} in ArcMapFst()