FST  openfst-1.7.3
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/closure.h>
5 
6 #include <fst/script/fst-class.h>
8 
9 namespace fst {
10 namespace script {
11 
12 void Closure(MutableFstClass *fst, ClosureType closure_type) {
13  ClosureArgs args(fst, closure_type);
14  Apply<Operation<ClosureArgs>>("Closure", fst->ArcType(), &args);
15 }
16 
20 
21 } // namespace script
22 } // namespace fst
const std::string & ArcType() const final
Definition: fst-class.h:298
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