Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MemoryDocumentDataIterator.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2005 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 // MemoryDocumentDataIterator
00015 //
00016 // 21 January 2005 -- tds
00017 //
00018 
00019 #ifndef INDRI_MEMORYDOCUMENTDATAITERATOR_HPP
00020 #define INDRI_MEMORYDOCUMENTDATAITERATOR_HPP
00021 
00022 #include "indri/DocumentDataIterator.hpp"
00023 #include <vector>
00024 #include "indri/DocumentData.hpp"
00025 
00026 namespace indri {
00027   namespace index {
00028     class MemoryDocumentDataIterator : public DocumentDataIterator {
00029     private:
00030       const std::vector<DocumentData>& _dataVector;
00031       std::vector<DocumentData>::const_iterator _iterator;
00032 
00033     public:
00034       MemoryDocumentDataIterator( const std::vector<DocumentData>& documentData );
00035       ~MemoryDocumentDataIterator();
00036 
00037       void startIteration();
00038       bool nextEntry();
00039       const DocumentData* currentEntry();
00040       bool finished();
00041     };
00042   }
00043 }
00044 
00045 #endif // INDRI_DOCUMENTDATAITERATOR_HPP
00046 

Generated on Tue Jun 15 11:02:54 2010 for Lemur by doxygen 1.3.4