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


Loading...
Searching...
No Matches
PhraseQueue.h
Go to the documentation of this file.
1
2// 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
12namespace Lucene {
13// raw pointer
15
16class PhraseQueue : public PriorityQueue<PhrasePositionsStar> {
17public:
18 PhraseQueue(int32_t size);
19 virtual ~PhraseQueue();
20
22
23protected:
24 virtual bool lessThan(const PhrasePositionsStar& first, const PhrasePositionsStar& second);
25
26};
27
28}
29
30#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Position of a term in a document that takes into account the term offset within the phrase.
Definition PhrasePositions.h:15
Definition PhraseQueue.h:16
virtual bool lessThan(const PhrasePositionsStar &first, const PhrasePositionsStar &second)
Determines the ordering of objects in this priority queue. Subclasses must define this one method.
virtual ~PhraseQueue()
PhraseQueue(int32_t size)
A PriorityQueue maintains a partial ordering of its elements such that the least element can always b...
Definition PriorityQueue.h:20
int32_t size() const
Returns the number of elements currently stored in the PriorityQueue.
Definition PriorityQueue.h:133
Definition AbstractAllTermDocs.h:12
PhrasePositions * PhrasePositionsStar
Definition PhraseQueue.h:14

clucene.sourceforge.net