00001 /*========================================================================== 00002 * Copyright (c) 2004 University of Massachusetts. 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 // 00014 // DocListIteratorNode 00015 // 00016 // 26 January 2004 -- tds 00017 // 00018 00019 #ifndef INDRI_DOCLISTITERATORNODE_HPP 00020 #define INDRI_DOCLISTITERATORNODE_HPP 00021 00022 #include "indri/DocListIterator.hpp" 00023 #include "indri/ListIteratorNode.hpp" 00024 #include "indri/Extent.hpp" 00025 #include "indri/greedy_vector" 00026 #include <string> 00027 namespace indri 00028 { 00029 namespace infnet 00030 { 00031 00032 class DocListIteratorNode : public ListIteratorNode { 00033 private: 00034 indri::index::DocListIterator* _list; 00035 class InferenceNetwork& _network; 00036 int _listID; 00037 indri::utility::greedy_vector<indri::index::Extent> _extents; 00038 std::string _name; 00039 00040 public: 00041 DocListIteratorNode( const std::string& name, class InferenceNetwork& network, int listID ); 00042 00043 lemur::api::DOCID_T nextCandidateDocument(); 00044 void indexChanged( indri::index::Index& index ); 00045 void indexChanged( indri::index::Index& index, class InferenceNetwork *network ); 00046 00047 void prepare( lemur::api::DOCID_T documentID ); 00048 const indri::utility::greedy_vector<indri::index::Extent>& extents(); 00049 const std::string& getName() const; void annotate( Annotator& annotator, lemur::api::DOCID_T documentID, indri::index::Extent &extent ); 00050 }; 00051 } 00052 } 00053 00054 #endif // INDRI_DOCLISTITERATORNODE_HPP