Home | History | Annotate | Download | only in lib

Lines Matching full:mapper

187 // A mapper to encode/decode weighted transducers. Encoding of an
192 // The Encode mapper stores the encoding in a local hash table (EncodeTable)
213 EncodeMapper(const EncodeMapper& mapper)
214 : ref_count_(mapper.ref_count_ + 1),
215 flags_(mapper.flags_),
216 type_(mapper.type_),
217 table_(mapper.table_) { }
220 EncodeMapper(const EncodeMapper& mapper, EncodeType type)
221 : ref_count_(mapper.ref_count_ + 1),
222 flags_(mapper.flags_),
224 table_(mapper.table_) { }
320 void Encode(MutableFst<A> *fst, EncodeMapper<A>* mapper) {
321 Map(fst, mapper);
326 void Decode(MutableFst<A>* fst, const EncodeMapper<A>& mapper) {
327 Map(fst, EncodeMapper<A>(mapper, DECODE));