FST  openfst-1.7.2
OpenFst Library
closure.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/closure.h>
7 
8 namespace fst {
9 namespace script {
10 
11 void Closure(MutableFstClass *fst, ClosureType closure_type) {
12  ClosureArgs args(fst, closure_type);
13  Apply<Operation<ClosureArgs>>("Closure", fst->ArcType(), &args);
14 }
15 
19 
20 } // namespace script
21 } // namespace fst
const string & ArcType() const final
Definition: fst-class.h:290
REGISTER_FST_OPERATION(Compress, StdArc, CompressArgs)
ClosureType
Definition: rational.h:24
std::pair< MutableFstClass *, const ClosureType > ClosureArgs
Definition: closure.h:15
void Closure(ClosureArgs *args)
Definition: closure.h:18