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