FST  openfst-1.7.3
OpenFst Library
invert.cc
Go to the documentation of this file.
1 // See www.openfst.org for extensive documentation on this weighted
2 // finite-state transducer library.
3 
4 #include <fst/script/invert.h>
5 
6 #include <fst/script/fst-class.h>
8 
9 namespace fst {
10 namespace script {
11 
12 void Invert(MutableFstClass *fst) {
13  Apply<Operation<MutableFstClass>>("Invert", fst->ArcType(), fst);
14 }
15 
16 REGISTER_FST_OPERATION(Invert, StdArc, MutableFstClass);
17 REGISTER_FST_OPERATION(Invert, LogArc, MutableFstClass);
18 REGISTER_FST_OPERATION(Invert, Log64Arc, MutableFstClass);
19 
20 } // namespace script
21 } // namespace fst
ArcTpl< TropicalWeight > StdArc
Definition: arc.h:59
REGISTER_FST_OPERATION(Compress, StdArc, CompressArgs)
void Invert(MutableFstClass *fst)
Definition: invert.h:14
ArcTpl< Log64Weight > Log64Arc
Definition: arc.h:61
ArcTpl< LogWeight > LogArc
Definition: arc.h:60