00001 /*========================================================================== 00002 * Copyright (c) 2001 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 00013 #ifndef _INVFPDOCINFO_HPP 00014 #define _INVFPDOCINFO_HPP 00015 /* 00016 * NAME DATE - COMMENTS 00017 * tnt 03/2001 - created 00018 * tnt 06/2002 - subclass from InvDocInfo 00019 * 00020 *========================================================================*/ 00021 00022 #include "InvFPTypes.hpp" 00023 00024 namespace lemur 00025 { 00026 namespace index 00027 { 00036 class InvFPDocInfo: public lemur::api::DocInfo { 00037 public: 00038 InvFPDocInfo() {pos=NULL;} 00039 ~InvFPDocInfo() {} 00040 00041 const lemur::api::LOC_T* positions() const {return pos; } 00042 void positions(const lemur::api::LOC_T* p) {pos = p;} 00043 00044 private: 00045 const lemur::api::LOC_T* pos; // list of positions in this doc (size is count) 00046 }; 00047 } 00048 } 00049 00050 #endif