FST  openfst-1.7.1
OpenFst Library
project.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_PROJECT_H_
5 #define FST_SCRIPT_PROJECT_H_
6 
7 #include <utility>
8 
9 #include <fst/project.h>
10 #include <fst/script/fst-class.h>
11 
12 namespace fst {
13 namespace script {
14 
15 using ProjectArgs = std::pair<MutableFstClass *, ProjectType>;
16 
17 template <class Arc>
18 void Project(ProjectArgs *args) {
19  MutableFst<Arc> *fst = std::get<0>(*args)->GetMutableFst<Arc>();
20  Project(fst, std::get<1>(*args));
21 }
22 
23 void Project(MutableFstClass *fst, ProjectType project_type);
24 
25 } // namespace script
26 } // namespace fst
27 
28 #endif // FST_SCRIPT_PROJECT_H_
ProjectType
Definition: project.h:16
std::pair< MutableFstClass *, ProjectType > ProjectArgs
Definition: project.h:15
void Project(ProjectArgs *args)
Definition: project.h:18