lux/index/index_result.h

00001 #ifndef LUX_INDEX_INDEXRESULT_H
00002 #define LUX_INDEX_INDEXRESULT_H
00003 
00004 #include "lux/lux.h"
00005 #include <vector>
00006 
00007 namespace Lux {
00008 
00009   struct IndexResult {
00010     IndexResult(doc_id_t doc_id_, score_t score_)
00011     : doc_id(doc_id_), score(score_)
00012     {}
00013 
00014     ~IndexResult(void)
00015     {}
00016 
00017     doc_id_t doc_id;
00018     score_t score;
00019     char *attr;
00020   };
00021 
00022   typedef std::vector<IndexResult> IndexResultSet;
00023   typedef IndexResultSet::iterator IRSItr;
00024 
00025 }
00026 
00027 #endif

Generated on Fri Feb 5 15:50:30 2010 for Lux by  doxygen 1.4.7