FST  openfst-1.6.1
OpenFst Library
reverse.h
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 #ifndef FST_SCRIPT_REVERSE_H_
5 #define FST_SCRIPT_REVERSE_H_
6 
7 #include <fst/reverse.h>
8 #include <fst/script/arg-packs.h>
9 #include <fst/script/fst-class.h>
10 
11 namespace fst {
12 namespace script {
13 
15 
16 template <class Arc>
17 void Reverse(ReverseArgs *args) {
18  const Fst<Arc> &ifst = *(args->arg1.GetFst<Arc>());
19  MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>();
20  bool require_superinitial = args->arg3;
21  Reverse(ifst, ofst, require_superinitial);
22 }
23 
24 void Reverse(const FstClass &ifst, MutableFstClass *ofst,
25  bool require_superinitial = true);
26 
27 } // namespace script
28 } // namespace fst
29 
30 #endif // FST_SCRIPT_REVERSE_H_
void Reverse(ReverseArgs *args)
Definition: reverse.h:17