FST  openfst-1.7.3
OpenFst Library
project.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/project.h>
5 
6 #include <fst/script/fst-class.h>
8 
9 namespace fst {
10 namespace script {
11 
12 
13 void Project(MutableFstClass *ofst, ProjectType project_type) {
14  ProjectArgs args(ofst, project_type);
15  Apply<Operation<ProjectArgs>>("Project", ofst->ArcType(), &args);
16 }
17 
21 
22 } // namespace script
23 } // namespace fst
const std::string & ArcType() const final
Definition: fst-class.h:298
ProjectType
Definition: project.h:16
REGISTER_FST_OPERATION(Compress, StdArc, CompressArgs)
std::pair< MutableFstClass *, ProjectType > ProjectArgs
Definition: project.h:15
void Project(ProjectArgs *args)
Definition: project.h:18