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

PhraseQueue.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 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 public:
16 PhraseQueue(int32_t size);
17 virtual ~PhraseQueue();
18
19 LUCENE_CLASS(PhraseQueue);
20
21 protected:
22 virtual bool lessThan(const PhrasePositionsPtr& first, const PhrasePositionsPtr& second);
23 };
24
25 }
26
27 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
PriorityQueue.h
Lucene::PhraseQueue
Definition: PhraseQueue.h:14
Lucene::PhraseQueue::lessThan
virtual bool lessThan(const PhrasePositionsPtr &first, const PhrasePositionsPtr &second)
Determines the ordering of objects in this priority queue. Subclasses must define this one method.
Lucene::PhraseQueue::~PhraseQueue
virtual ~PhraseQueue()
Lucene::PhraseQueue::PhraseQueue
PhraseQueue(int32_t size)
Lucene::PriorityQueue
A PriorityQueue maintains a partial ordering of its elements such that the least element can always b...
Definition: PriorityQueue.h:20
Lucene::PriorityQueue< PhrasePositionsPtr >::size
int32_t size() const
Returns the number of elements currently stored in the PriorityQueue.
Definition: PriorityQueue.h:133
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::PhrasePositionsPtr
boost::shared_ptr< PhrasePositions > PhrasePositionsPtr
Definition: LuceneTypes.h:410

clucene.sourceforge.net