Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
QueryParserToken.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 QUERYPARSERTOKEN_H
8
#define QUERYPARSERTOKEN_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene
{
13
15
class
LPPAPI
QueryParserToken
:
public
LuceneObject
{
16
public
:
18
QueryParserToken
(int32_t
kind
= 0,
const
String&
image
= EmptyString);
19
20
virtual
~QueryParserToken
();
21
22
LUCENE_CLASS
(
QueryParserToken
);
23
24
public
:
26
int32_t
kind
;
27
29
int32_t
beginLine
;
30
32
int32_t
beginColumn
;
33
35
int32_t
endLine
;
36
38
int32_t
endColumn
;
39
41
String
image
;
42
47
QueryParserTokenPtr
next
;
48
56
QueryParserTokenPtr
specialToken
;
57
58
public
:
60
virtual
String
toString
();
61
65
static
QueryParserTokenPtr
newToken
(int32_t ofKind,
const
String&
image
= EmptyString);
66
};
67
68
}
69
70
#endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene::QueryParserToken::image
String image
The string image of the token.
Definition
QueryParserToken.h:41
Lucene::QueryParserToken::specialToken
QueryParserTokenPtr specialToken
This field is used to access special tokens that occur prior to this token, but after the immediately...
Definition
QueryParserToken.h:56
Lucene::QueryParserToken::beginColumn
int32_t beginColumn
The column number of the first character of this Token.
Definition
QueryParserToken.h:32
Lucene::QueryParserToken::newToken
static QueryParserTokenPtr newToken(int32_t ofKind, const String &image=EmptyString)
Returns a new Token object, by default. However, if you want, you can create and return subclass obje...
Lucene::QueryParserToken::beginLine
int32_t beginLine
The line number of the first character of this Token.
Definition
QueryParserToken.h:29
Lucene::QueryParserToken::endLine
int32_t endLine
The line number of the last character of this Token.
Definition
QueryParserToken.h:35
Lucene::QueryParserToken::~QueryParserToken
virtual ~QueryParserToken()
Lucene::QueryParserToken::kind
int32_t kind
An integer that describes the kind of this token.
Definition
QueryParserToken.h:26
Lucene::QueryParserToken::QueryParserToken
QueryParserToken(int32_t kind=0, const String &image=EmptyString)
Constructs a new token for the specified Image and Kind.
Lucene::QueryParserToken::toString
virtual String toString()
Returns the image.
Lucene::QueryParserToken::endColumn
int32_t endColumn
The column number of the last character of this Token.
Definition
QueryParserToken.h:38
Lucene::QueryParserToken::next
QueryParserTokenPtr next
A reference to the next regular (non-special) token from the input stream. If this is the last token ...
Definition
QueryParserToken.h:47
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::QueryParserTokenPtr
boost::shared_ptr< QueryParserToken > QueryParserTokenPtr
Definition
LuceneTypes.h:273
clucene.sourceforge.net