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 #ifndef FST_SCRIPT_TOPSORT_H_ 00018 #define FST_SCRIPT_TOPSORT_H_ 00019 00020 #include <fst/script/arg-packs.h> 00021 #include <fst/script/fst-class.h> 00022 #include <fst/topsort.h> 00023 00024 namespace fst { 00025 namespace script { 00026 00027 typedef args::WithReturnValue<bool, MutableFstClass*> TopSortArgs; 00028 00029 template<class Arc> 00030 void TopSort(TopSortArgs *args) { 00031 MutableFst<Arc> *fst = args->args->GetMutableFst<Arc>(); 00032 args->retval = TopSort(fst); 00033 } 00034 00035 bool TopSort(MutableFstClass *fst); 00036 00037 } /// namespace script 00038 } /// namespace fst 00039 00040 #endif /// FST_SCRIPT_TOPSORT_H_ 00041
1.7.1