FST  openfst-1.7.2
OpenFst Library
synchronize.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_SYNCHRONIZE_H_
5 #define FST_SCRIPT_SYNCHRONIZE_H_
6 
7 #include <utility>
8 
9 #include <fst/synchronize.h>
10 #include <fst/script/fst-class.h>
11 
12 namespace fst {
13 namespace script {
14 
15 using SynchronizeArgs = std::pair<const FstClass &, MutableFstClass *>;
16 
17 template <class Arc>
19  const Fst<Arc> &ifst = *(std::get<0>(*args).GetFst<Arc>());
20  MutableFst<Arc> *ofst = std::get<1>(*args)->GetMutableFst<Arc>();
21  Synchronize(ifst, ofst);
22 }
23 
24 void Synchronize(const FstClass &ifst, MutableFstClass *ofst);
25 
26 } // namespace script
27 } // namespace fst
28 
29 #endif // FST_SCRIPT_SYNCHRONIZE_H_
void Synchronize(SynchronizeArgs *args)
Definition: synchronize.h:18
std::pair< const FstClass &, MutableFstClass * > SynchronizeArgs
Definition: synchronize.h:15