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

TokenFilter.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 TOKENFILTER_H
8 #define TOKENFILTER_H
9
10 #include "TokenStream.h"
11
12 namespace Lucene {
13
18 class LPPAPI TokenFilter : public TokenStream {
19 protected:
21 TokenFilter(const TokenStreamPtr& input);
22
23 public:
24 virtual ~TokenFilter();
25
26 LUCENE_CLASS(TokenFilter);
27
28 protected:
30 TokenStreamPtr input;
31
32 public:
35 virtual void end();
36
38 virtual void close();
39
41 virtual void reset();
42 };
43
44 }
45
46 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::TokenStream
A TokenStream enumerates the sequence of tokens, either from Fields of a Document or from query text.
Definition: TokenStream.h:44
TokenStream.h
Lucene::TokenFilter
A TokenFilter is a TokenStream whose input is another TokenStream.
Definition: TokenFilter.h:18
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::TokenStreamPtr
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition: LuceneTypes.h:63

clucene.sourceforge.net