Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AbstractAllTermDocs.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef ABSTRACTALLTERMDOCS_H
8 #define ABSTRACTALLTERMDOCS_H
9 
10 #include "TermDocs.h"
11 
12 namespace Lucene
13 {
18  class LPPAPI AbstractAllTermDocs : public TermDocs, public LuceneObject
19  {
20  public:
21  AbstractAllTermDocs(int32_t maxDoc);
22  virtual ~AbstractAllTermDocs();
23 
25 
26  protected:
27  int32_t maxDoc;
28  int32_t _doc;
29 
30  public:
31  virtual void seek(TermPtr term);
32  virtual void seek(TermEnumPtr termEnum);
33  virtual int32_t doc();
34  virtual int32_t freq();
35  virtual bool next();
36  virtual int32_t read(Collection<int32_t> docs, Collection<int32_t> freqs);
37  virtual bool skipTo(int32_t target);
38  virtual void close();
39  virtual bool isDeleted(int32_t doc) = 0;
40  };
41 }
42 
43 #endif

clucene.sourceforge.net