FST  openfst-1.6.1
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 override
Definition: fst-class.h:289
REGISTER_FST_OPERATION(Compress, StdArc, CompressArgs)
ClosureType
Definition: rational.h:24
void Closure(ClosureArgs *args)
Definition: closure.h:17