00001 #ifndef SEARCH_TYPES__ 00002 #define SEARCH_TYPES__ 00003 00004 #include <stdint.h> 00005 00006 namespace lm { namespace ngram { struct ChartState; } } 00007 00008 namespace search { 00009 00010 typedef float Score; 00011 00012 typedef uint32_t Arity; 00013 00014 union Note { 00015 const void *vp; 00016 }; 00017 00018 typedef void *History; 00019 00020 struct NBestComplete { 00021 NBestComplete(History in_history, const lm::ngram::ChartState &in_state, Score in_score) 00022 : history(in_history), state(&in_state), score(in_score) {} 00023 00024 History history; 00025 const lm::ngram::ChartState *state; 00026 Score score; 00027 }; 00028 00029 } // namespace search 00030 00031 #endif // SEARCH_TYPES__