00001 00002 /// Licensed under the Apache License, Version 2.0 (the "License"); 00003 /// you may not use this file except in compliance with the License. 00004 /// You may obtain a copy of the License at 00005 /// 00006 /// http://www.apache.org/licenses/LICENSE-2.0 00007 /// 00008 /// Unless required by applicable law or agreed to in writing, software 00009 /// distributed under the License is distributed on an "AS IS" BASIS, 00010 /// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00011 /// See the License for the specific language governing permissions and 00012 /// limitations under the License. 00013 /// 00014 /// Copyright 2005-2010 Google, Inc. 00015 /// Author: jpr@google.com (Jake Ratkiewicz) 00016 00017 #include <fst/script/fst-class.h> 00018 #include <fst/script/script-impl.h> 00019 #include <fst/script/topsort.h> 00020 00021 namespace fst { 00022 namespace script { 00023 00024 bool TopSort(MutableFstClass *fst) { 00025 TopSortArgs args(fst); 00026 00027 Apply<Operation<TopSortArgs> >("TopSort", fst->ArcType(), &args); 00028 00029 return args.retval; 00030 } 00031 00032 REGISTER_FST_OPERATION(TopSort, StdArc, TopSortArgs); 00033 REGISTER_FST_OPERATION(TopSort, LogArc, TopSortArgs); 00034 00035 } /// namespace script 00036 } /// namespace fst 00037
1.7.1