Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
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
12
namespace
Lucene
{
13
// raw pointer
14
typedef
PhrasePositions
*
PhrasePositionsStar
;
15
16
class
PhraseQueue
:
public
PriorityQueue
<PhrasePositionsStar> {
17
public
:
18
PhraseQueue
(int32_t
size
);
19
virtual
~PhraseQueue
();
20
21
LUCENE_CLASS
(
PhraseQueue
);
22
23
protected
:
24
virtual
bool
lessThan
(
const
PhrasePositionsStar
& first,
const
PhrasePositionsStar
& second);
25
26
};
27
28
}
29
30
#endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
PriorityQueue.h
Lucene::PhrasePositions
Position of a term in a document that takes into account the term offset within the phrase.
Definition
PhrasePositions.h:15
Lucene::PhraseQueue::lessThan
virtual bool lessThan(const PhrasePositionsStar &first, const PhrasePositionsStar &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< PhrasePositionsStar >::size
int32_t size() const
Definition
PriorityQueue.h:133
Lucene::PriorityQueue< PhrasePositionsStar >::PriorityQueue
PriorityQueue(int32_t maxSize)
Definition
PriorityQueue.h:24
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::PhrasePositionsStar
PhrasePositions * PhrasePositionsStar
Definition
PhraseQueue.h:14
clucene.sourceforge.net