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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PhraseQueue.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 PHRASEQUEUE_H
8 #define PHRASEQUEUE_H
9 
10 #include "PriorityQueue.h"
11 
12 namespace Lucene
13 {
14  class PhraseQueue : public PriorityQueue<PhrasePositionsPtr>
15  {
16  public:
17  PhraseQueue(int32_t size);
18  virtual ~PhraseQueue();
19 
21 
22  protected:
23  virtual bool lessThan(const PhrasePositionsPtr& first, const PhrasePositionsPtr& second);
24  };
25 }
26 
27 #endif

clucene.sourceforge.net