FST  openfst-1.7.1
OpenFst Library
arcsort.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/arcsort.h>
7 
8 namespace fst {
9 namespace script {
10 
12  ArcSortArgs args(fst, sort_type);
13  Apply<Operation<ArcSortArgs>>("ArcSort", fst->ArcType(), &args);
14 }
15 
19 
20 } // namespace script
21 } // namespace fst
std::pair< MutableFstClass *, ArcSortType > ArcSortArgs
Definition: arcsort.h:20
const string & ArcType() const final
Definition: fst-class.h:290
REGISTER_FST_OPERATION(Compress, StdArc, CompressArgs)
void ArcSort(ArcSortArgs *args)
Definition: arcsort.h:23