Lines Matching refs:mapper
188 // A mapper to encode/decode weighted transducers. Encoding of an
193 // The Encode mapper stores the encoding in a local hash table (EncodeTable)
214 EncodeMapper(const EncodeMapper& mapper)
215 : ref_count_(mapper.ref_count_ + 1),
216 flags_(mapper.flags_),
217 type_(mapper.type_),
218 table_(mapper.table_) { }
221 EncodeMapper(const EncodeMapper& mapper, EncodeType type)
222 : ref_count_(mapper.ref_count_ + 1),
223 flags_(mapper.flags_),
225 table_(mapper.table_) { }
321 void Encode(MutableFst<A> *fst, EncodeMapper<A>* mapper) {
322 Map(fst, mapper);
327 void Decode(MutableFst<A>* fst, const EncodeMapper<A>& mapper) {
328 Map(fst, EncodeMapper<A>(mapper, DECODE));