00001 /*========================================================================== 00002 * Copyright (c) 2004 Carnegie Mellon University. All Rights Reserved. 00003 * 00004 * Use of the Lemur Toolkit for Language Modeling and Information Retrieval 00005 * is subject to the terms of the software license set forth in the LICENSE 00006 * file included with this software, and also available at 00007 * http://www.lemurproject.org/license.html 00008 * 00009 *========================================================================== 00010 */ 00011 00012 /* type definitions for index objects */ 00013 /* these probably should be been in a namespace */ 00014 #ifndef _INDEXTYPES_H 00015 #define _INDEXTYPES_H 00016 00017 #include "common_headers.hpp" 00018 00019 typedef int FILEID_T; 00020 // All four of TERMID_T, DOCID_T, LOC_T, and COUNT_T need to be 00021 // the same size for the Inv(FP) and Keyfile indexes to work 00022 // without rewrite. 10/05/2004 -- dmf 00023 typedef int TERMID_T; 00024 typedef TERMID_T LOC_T; 00025 typedef TERMID_T DOCID_T; 00026 typedef TERMID_T COUNT_T; 00027 typedef float SCORE_T; 00028 typedef string TERM_T; 00029 typedef string EXDOCID_T; 00030 typedef void* POS_T; // Used by DocLists and TermLists 00031 00032 #endif