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


QueryParserToken.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 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 
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 
48 
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
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::QueryParserTokenPtr
boost::shared_ptr< QueryParserToken > QueryParserTokenPtr
Definition: LuceneTypes.h:273
Lucene::QueryParserToken::beginLine
int32_t beginLine
The line number of the first character of this Token.
Definition: QueryParserToken.h:29
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::QueryParserToken::beginColumn
int32_t beginColumn
The column number of the first character of this Token.
Definition: QueryParserToken.h:32
Lucene::QueryParserToken::endLine
int32_t endLine
The line number of the last character of this Token.
Definition: QueryParserToken.h:35
Lucene::QueryParserToken::endColumn
int32_t endColumn
The column number of the last character of this Token.
Definition: QueryParserToken.h:38
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::LuceneObject
Base class for all Lucene classes.
Definition: LuceneObject.h:31
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
Describes the input token stream.
Definition: QueryParserToken.h:15
Lucene::QueryParserToken::image
String image
The string image of the token.
Definition: QueryParserToken.h:41
LuceneObject.h

clucene.sourceforge.net